Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
he dont respone on boots of haste and getting this in serverlog.
[0:30:58.275] [Error - NpcScript Interface]
[0:30:58.277] data/npc/scripts/tokentrader.lua:onCreatureSay
[0:30:58.278] Description:
[0:30:58.279] data/npc/scripts/tokentrader.lua:45: attempt to concatenate field
'?' (a nil value)...
Can you please also explain what line that tell npc to take tokens from player it is this like
if doPlayerRemoveItem(cid, tokens, itemToGive.amount) then why itemtogive there in the local for itemtogive there is nothing... lol im confusing
working now thanks you! and yet other problems... the scripts is if i said boots of haste and then yes and the npc will give you boots of haste that how its should work, but when i try my second items exempel "soft boots" and after that i said "yes" i getting the boots of haste..... why does...
Just added this if statement its doesnt help i still the same getting items with no tokens
if msgcontains(msg, "soft boots") then
if getPlayerItemCount(cid,t.tokens,20) then ---------- cost 20 Gametokens
selfSay('Did you bring me 20 gametokens?', cid)...
if i have the request items in my bag the npc will take it and give me the items but also i can get items without the requesting items...
i got the getPlayerItemCount(cid, 6527 > [, subType = 10])
how can i do it so count 10 for the request? am i doing it right?
ok i got everything working fine now! but yet there is another problem the npc give items even i dont have the tokens...:(:(:(
getPlayerItemCount(cid,t.tokens,20) ---------- cost 20 Gametokens
selfSay('Did you bring me 20 gametokens?', cid)
elseif...
I'm got this to work sir, but yet didnt NPC Respone after i saying "yes" im getting no error in my serverlog.
21:46 Frenzy: Welcome, Own! I have been expecting you.
21:46 Own [665]: Boots of haste
21:46 Own [665]: gametoken
21:46 Own [665]: hi
21:46 Frenzy: Welcome, Own! I have been expecting...
what does this error mean ???
[20:22:48.149] [Error - NpcScript Interface]
[20:22:48.150] data/npc/scripts/tokentrader.lua
[20:22:48.151] Description:
[20:22:48.152] data/npc/lib/npc.lua:51: attempt to index local 'message' (a nil
value)
now my script look like this gosh....
if msgcontains(msg, 'demon helmet') then
getPlayerItemCount(cid,t.tokens,10) -- 10 Game Tokens
selfSay('Did you bring me 10 game tokens?', cid)
else
selfSay('Sorry, I need you to have atleast {10 game tokens} . Come back when you...
like this sir? i'm so damn confused with all the codes..... phew...
if msgcontains(msg, 'demon helmet')
if getPlayerItemCount(cid,t.tokens,10) -- 10 Game Tokens
selfSay('Did you bring me 10 game tokens?', cid)
else
selfSay('Sorry, I need you to have atleast {10 game...
i did remove the if statement and its told me unexpected symbol near then
if doPlayerRemoveItem(cid,t.tokens,10) then
doPlayerAddItem(cid, t.items[2][3], t.items[2][2]) then <<<----- this add item line is unexpected symbol near then...
selfSay("Here you go!", cid)
end
end
like this sir?
if msgcontains(msg,'yes') then
if doPlayerRemoveItem(cid,t.tokens,10) then
if doPlayerAddItem(cid, t.items[1][3], t.items[1][2]) then ---- boots of haste
selfSay("Here you go!", cid)
end
end
end
end
if msgcontains(msg, 'demon...
thanks getting the script right now, and now i got this error .... null...
[19:12:24.611] [Error - NpcScript Interface]
[19:12:24.612] data/npc/scripts/tokentrader.lua
[19:12:24.613] Description:
[19:12:24.614] data/npc/lib/npc.lua:51: attempt to index local 'message' (a nil
value)...
if msgcontains(msg,'yes') then
if doPlayerRemoveItem(cid,t.tokens,10) then
if PlayerAddItem(cid,t.items[2]) then ----- demon helmet
selfSay"Here you go!"
end
end
end
i have changed it to this now, it is right?