• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

!nick comand...???

demonlight

New Member
Joined
Aug 18, 2007
Messages
29
Reaction score
0
some guys have this command on his forgotten 0.2.3.... but, how add this comand to edit guild nick???? and where can i find a addon npc??? ty!!!
 
some guys have this command on his forgotten 0.2.3.... but, how add this comand to edit guild nick???? and where can i find a addon npc??? ty!!!



First of all the Guild npc of TheFOrgotten server isen't done jet..i cant make it since the codes aren't finished yet.


There are plenty of addon npc's around i saw like 3 of them this weaks
 
some guys have this command on his forgotten 0.2.3.... but, how add this comand to edit guild nick???? and where can i find a addon npc??? ty!!!

!nick demonlight, Test Nick
 
ive downloaded an npc here:

------------- Addon NPC for Forgotten Server ---------------
---------------------- Script by Lithium --------------------------
------------------------------------------------------------------------
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

-- OTServ event handling functions start
function onCreatureAppear(cid) npcHandler:eek:nCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:eek:nCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:eek:nCreatureSay(cid, type, msg) end
function onThink() npcHandler:eek:nThink() end
-- OTServ event handling functions end

function creatureSayCallback(cid, type, msg)
-- Place all your code in here. Remember that hi, bye and all that stuff is already handled by the npcsystem, so you do not have to take care of that yourself.
if(npcHandler.focus ~= cid) then
return false
end

if msgcontains(msg, 'addons') or msgcontains(msg, 'addon') or msgcontains(msg, 'addoner') then
selfSay('I sell the first addon for 5k and the second addon for 10k.')
elseif getPlayerPremiumDays(cid) > 0 then
if msgcontains(msg, 'first addon') then
selfSay('Do you want to buy the first addon for 5k?')
talk_state = 1
elseif msgcontains(msg, 'second addon') then
selfSay('Do you want to buy the second addon for 10k?')
talk_state = 2
elseif talk_state == 1 then
if msgcontains(msg, 'yes') then
if doPlayerRemoveMoney(cid,5000) then
if getPlayerSex(cid) == 1 then
for x = 128, 134 do
doPlayerAddOutfit(cid, x, 1)
end
for y = 143, 146 do
doPlayerAddOutfit(cid, y, 1)
end
for z = 151, 154 do
doPlayerAddOutfit(cid, z, 1)
end
else
for x = 136, 142 do
doPlayerAddOutfit(cid, x, 1)
end
for y = 147, 150 do
doPlayerAddOutfit(cid, y, 1)
end
for z = 155, 158 do
doPlayerAddOutfit(cid, z, 1)
end
end
selfSay('You have now the first addon!')
else
selfSay('Sorry, you don\'t have enough money.')
end
end
talk_state = 0
elseif talk_state == 2 then
if msgcontains(msg, 'yes') then
if doPlayerRemoveMoney(cid,10000) then
if getPlayerSex(cid) == 1 then
for x = 128, 134 do
doPlayerAddOutfit(cid, x, 2)
end
for y = 143, 146 do
doPlayerAddOutfit(cid, y, 2)
end
for z = 151, 154 do
doPlayerAddOutfit(cid, z, 2)
end
else
for x = 136, 142 do
doPlayerAddOutfit(cid, x, 2)
end
for y = 147, 150 do
doPlayerAddOutfit(cid, y, 2)
end
for z = 155, 158 do
doPlayerAddOutfit(cid, z, 2)
end
end
selfSay('You have now the second addon!')
else
selfSay('Sorry, you don\'t have enough money.')
end
end
talk_state = 0
elseif msgcontains(msg, 'bye') then
selfSay('Good bye!')

talk_state = 0
end
else
selfSay('You need a premium account to buy \'addons\', there\'s nothing else you can do here..')
end
return TRUE
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())


but still not working! :

12:52 Lithium [8]: hi
12:52 NPC Addons: Welcome, Lithium! I have been expecting you.
12:52 Lithium [8]: addon
12:52 NPC Addons: I sell the first addon for 5k and the second addon for 10k.
12:52 Lithium [8]: first addon
12:52 NPC Addons: I sell the first addon for 5k and the second addon for 10k.
12:52 Lithium [8]: ?


whats the problm?? ty
 
You need to type it in guild channel.
 
the server is ok.... but only the addon npc still not working... ive tried alot of npcs, no one is working correctly... dunno why :(...
 
Back
Top