title is 1.2/1.3Great thread Xeraphus! Can you create also scripts for older versions like 0.2 and 0.3+? Would be great!!
A working bounty system? Where players could say like !addbounty fishie 10000
Would be good if there was someway of players seeing bountys that are running too? maybe like !online but the players shown would show the bounty??
<talkaction words="!bounty" separator=" " script="addbounty.lua"/>
<event type="death" name="bountyKill" script="bountyKill.lua"/>
function onDeath(player, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
if not killer:getPlayer() then
return true
end
Game.broadcastMessage(string.format('%s [Level %d] has killed %s [Level %d].', killer:getName(), killer:getLevel(), player:getName(), player:getLevel()))
return true
end
<event type="death" name="playerKilled" script="playerKilled.lua"/>
talkactions\online.lua
http://pastebin.com/Wq83STE4
talkactions\addBounty.lua
http://pastebin.com/QGmFRFBt
Code:<talkaction words="!bounty" separator=" " script="addbounty.lua"/>
creaturescripts\bountyKill.lua
http://pastebin.com/0N513ZzB
events\player.lua @PlayernLook
http://pastebin.com/tp8RhwjK
register bountyKill in login.luaCode:<event type="death" name="bountyKill" script="bountyKill.lua"/>
Their Master's Voice Quest (Regenerate mucus from the ground)
5) provide as much information as you can, if you don't know how to explain it, make a picture or video
I am sure you are skilled enough to do this yourself or are you just testing the guy?I want a function to scan for items in the database and the server. It should work like this:
If player is online:
Search for the item (by id) in his depots / inbox / house and inventory. It should return a table with all the items found.If player is offline:
Search for the item (by id) in his depots / inbox / house and inventory (but using the database). It should return a table with all the occurances (where it was found, all the information needed to fetch from the database using a query).
Thankx
I think you are confusing MatheusMkalo with Mkalo. This MatheusMkalo is terrible on Lua.I am sure you are skilled enough to do this yourself or are you just testing the guy?
he's testing me, he's fully capable of doing it himselfI am sure you are skilled enough to do this yourself or are you just testing the guy?
http://pastebin.com/jnZCUfzBI want a function to scan for items in the database and the server. It should work like this:
If player is online:
Search for the item (by id) in his depots / inbox / house and inventory. It should return a table with all the items found.If player is offline:
Search for the item (by id) in his depots / inbox / house and inventory (but using the database). It should return a table with all the occurances (where it was found, all the information needed to fetch from the database using a query).
Thankx
i added a new rule yesterdayI need on X area appear slime fungus on the ground when mad mage dead inside this X area, like rl.
http://tibia.wikia.com/wiki/Their_Master's_Voice_World_Change
here says world change but i dont now how to do it. xD