• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Need NPC: If u complete task, you get addon!

ralke

(҂ ͠❛ ෴ ͡❛)ᕤ
Joined
Dec 17, 2011
Messages
1,759
Solutions
31
Reaction score
999
Location
Santiago - Chile
GitHub
ralke23
Twitch
ralke23
Hi, I really need this script and I guess this will be a great idea!

The function is to ask NPC for task (like kill x999 demons, or x999 hydras, etc) and when you finish, you talk to npc to receive new addon (example: say hi, finish, yes, and receive "first citizen addon").

I know you guys can do this, please!
ralke~
 
Which distro are you using?
Regards Alw

using OTX Server 2.51 (Necron) :)

You can use this and change item for the addon.
http://otland.net/threads/npc-mission.211063/#post-2022378

i want more that 10 tasks so i guess that if i modify that script will be too long :s
anyways, i have to configure this? i'm very newb at lua so if u can help me with an easier script it would be great :p

Code:
if msgcontains(msg, "mission") then
if getPlayerStorageValue(cid, storage) == -1 then
selfSay("I have a mission for you to kill 9999 dragon lords, do you accept?", cid)
talkState[talkUser] = 1
elseif getPlayerStorageValue(cid, storage) == 1 then
selfSay("Did you kill 9999 dragon lords?", cid)

Code:
if getPlayerStorageValue(cid, 19000) == 5 and getPlayerStorageValue(cid, 19001) == 3 then
selfSay("Good job, now you can use your new addons!", cid)
        doPlayerAddOutfit(cid, 336, 3)
        doPlayerAddOutfit(cid, 335, 3)

Code:
local config = {
['dragon lord'] = {amount = 9999, storage = 19001, startstorage = 5002, startvalue = 1}

Code:
local storage = 5002

thanks for respond
ralke
 
the other npc seems easier :s (idk much lua functions, this would be my first script)
i'll try to script, anyways, if someone can script this will be great :D

thanks,
ralke
 
Back
Top