• 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!

[TFS 1.2/1.3] Free scripting service

Status
Not open for further replies.
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??
 
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??

talkactions\online.lua
http://pastebin.com/Wq83STE4

talkactions\addBounty.lua
http://pastebin.com/Bp2Um3iX

Code:
<talkaction words="!bounty" separator=" " script="addbounty.lua"/>

creaturescripts\bountyKill.lua
http://pastebin.com/0N513ZzB

events\player.lua @Player:eek:nLook
http://pastebin.com/tp8RhwjK


Code:
<event type="death" name="bountyKill" script="bountyKill.lua"/>
register bountyKill in login.lua
 
Last edited:
Hi @Xeraphus

Announce when a player dies by another player (name, level) for tfs 1.2, please?

creaturescripts\playerKilled.lua
Code:
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

Code:
<event type="death" name="playerKilled" script="playerKilled.lua"/>

register playerKilled in login.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 @Player:eek:nLook
http://pastebin.com/tp8RhwjK


Code:
<event type="death" name="bountyKill" script="bountyKill.lua"/>
register bountyKill in login.lua


Sweet! I'll test it tomorrow!

What about an aol which lasts forever? I know I can change the storage of normal aol but I want it so I can make an item into a aol which lasts forever?
 
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 :D
 
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 :D
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 :D
http://pastebin.com/jnZCUfzB
not the best code but i made it work :^)
 
Last edited:
Status
Not open for further replies.
Back
Top