Shaelex's scripts.
Everywhere I am Shaelex, but not here, that's why I am writing that scripts are made by Shaelex (it's me :D)
I will post here my lua scripts, they are made for players which are asking me for it in game. I hope it will be useful for someone from forum.
1. Simple Task Checker
lua code:----TASKER----
--BY SHAELEX--
-----2015-----
registerEventListener(WALKER_SELECTLABEL, "onLabel")
print('---TASKER---\n--by SHAELEX--\n----2015----')
local monster = "Kongra" -- monster name
local kills = 500 -- kills for task
function onLabel(label)
if(label == "CheckTasks") then
print('Checking tasks...')
wait(100,300)
if (Self.GetCreatureKills(monster)>=kills) then
print('Task is done, going to Grizzly Adams...')
Walker.Goto("GoToTask")
Self.ResetCreatureKills(monster)
else
print('Not enough kills for task...')
wait(100,300)
Walker.Goto("NoTask")
end
end
end
2. Simple seller
lua code:registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "SellItems") then
local items = {11661, 11660, 11659, 11316, 10277, 10386, 10388, 10387, 10384, 10390, 10392, 4033, 11657}
Walker.Stop()
Self.SayToNpc({"hi", "trade"}, 65)
for i=1, #items do
if (Self.ItemCount(items[i])>0 ) then
Self.ShopSellAllItems(items[i])
wait(500)
end
end
Walker.Start()
end
end