PDA

View Full Version : Guide Npc



Boxxy
01-08-08, 02:30 PM
---Made by noobcraft----

local npcid = 400009

function NPC_main_menu(pUnit, player)
pUnit:GossipCreateMenu(3543, player, 0)
pUnit:GossipMenuAddItem(0, "What do i do in this server?", 4, 0)
pUnit:GossipSendMenu(player)
end

function NPC_on_gossip_talk(pUnit, event, player)
NPC_main_menu(pUnit, player)
end

function NPC_on_gossip_select(pUnit, event, player, id, intid, code)
if(intid == 4) then
pUnit:SendChatMessage(12, 0, "Messege")
player:GossipComplete()
end
end

RegisterUnitGossipEvent(npcid, 1, "NPC_on_gossip_talk")
RegisterUnitGossipEvent(npcid, 2, "NPC_on_gossip_select")

Apple
01-08-08, 02:42 PM
nice job lol , u are contributing nice , but u need to put script in "Code" "
"

Succy
02-08-08, 10:35 AM
I don't know about this, I guess it can be ok, but basiclly they could just go right away to the servers website and see :P Or you could just do a WrapNPC XD
But good job I guess... SO +Rep

Chmun
02-08-08, 11:48 AM
lol i never knew b4 that we can do GossipScript in LUA too :O
+repx2

StickyIcky
02-08-08, 02:34 PM
I think you might need LUA++

Succy
03-08-08, 08:46 AM
Yep you do :P Wig, you didn't phail totally :P

Boxxy
03-08-08, 11:30 PM
this works great if you dont have lua++

Succy
03-08-08, 11:34 PM
Are you sure? Cause those are defnitly from Lua++... :S

Boxxy
03-08-08, 11:38 PM
hmmm ill cheack