• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Bounty Hunters System (Player Hunt System)

how do i change the text in bounty hunter on website it is on polish :O i want it on english, also how do i change the color of the link on website where it stays bounty hunter i want it orange or any other color.

Wysyla ogloszenie o huncie dla postaci. Cena w tysiacach.
Przyklad: !hunt 100,Infinity

translate please :) and how do i change color of

How to use...

* !hunt [prize],[nick] : Wysyla ogloszenie o huncie dla postaci. Cena w tysiacach.
Przyklad: !hunt 100,Infinity

that text to just one color.


thanks in advance
 
Last edited:
uhm? when im killing someone im getting back my money? should'nt it give me more money?
 
* !hunt [prize],[nick] : Wysyla ogloszenie o huncie dla postaci. Cena w tysiacach.
Przyklad: !hunt 100,Infinity

* !hunt [prize],[nick] : Sends annoucement about Player Hunt. Prize in thousands.
Example: !hunt 100,Infinity

Color you can set in <font> "tag".
 
Lol thats how it should work. There is no any free money generated from server. You pay, then if you kill you receive money back, not x2 because players could abuse it.
 
Lol thats how it should work. There is no any free money generated from server. You pay, then if you kill you receive money back, not x2 because players could abuse it.
ok;) but if i want x2? can you help me;)
 
[08/04/2009 03:42:54] Lua Script Error: [CreatureScript Interface]
[08/04/2009 03:42:54] data/creaturescripts/scripts/kill.lua:eek:nKill

[08/04/2009 03:42:55] attempt to index a boolean value
[08/04/2009 03:42:55] stack traceback:
[08/04/2009 03:42:55] [C]: in function 'getTileInfo'
[08/04/2009 03:42:55] data/creaturescripts/scripts/kill.lua:16: in function <data/creaturescripts/scripts/kill.lua:1>

anyone could help me? also the character refuses to die when he should die he freeze and loging out and loging in again with full hp :O

thanks in advance
 
ok;) but if i want x2? can you help me;)


Kill.lua in creaturescripts.

Code:
function onKill(cid, target)
if isPlayer(target) == TRUE then
---- BOUNTY HUNTERS START -----
pid = cid
pid2 = getPlayerGUID(target)
    local result_plr = db.getResult("SELECT * FROM `bounty_hunters` WHERE `sp_id` = "..pid2.." AND `killed` = 0;")
    if(result_plr:getID() ~= -1) then
    prize = tonumber(result_plr:getDataInt("prize"))
    bid = tonumber(result_plr:getDataInt("id"))
    result_plr:free()
    else
    prize = 0
    bid = 0
    end
print(bid)
print(prize)
if bid ~= 0 and prize ~= 0 then
    db.executeQuery("UPDATE `bounty_hunters` SET `killed` = 1, `k_id`="..getPlayerGUID(cid)..", `kill_time` = " .. os.time() .. " WHERE `id`  = "..bid..";")
    doPlayerAddMoney(cid,prize*1000[B]*2[/B])
    doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,'[BOUNTY HUNTERS] You killed hunted player, so you gained the reward!')
end    
---- BOUNTY HUNTERS END -----
end
return TRUE
end

or not?
 
@up

Working! A reputation point for you!

But it gives twice more money than payed after you kill hunted player. To change find this line:

Code:
doPlayerAddMoney(cid,prize*1000*2)

and change it to:

Code:
doPlayerAddMoney(cid,prize*1000)

otherwise players will clone money.

:D
 
Last edited:
Kill.lua in creaturescripts.

Code:
function onKill(cid, target)
if isPlayer(target) == TRUE then
---- BOUNTY HUNTERS START -----
pid = cid
pid2 = getPlayerGUID(target)
    local result_plr = db.getResult("SELECT * FROM `bounty_hunters` WHERE `sp_id` = "..pid2.." AND `killed` = 0;")
    if(result_plr:getID() ~= -1) then
    prize = tonumber(result_plr:getDataInt("prize"))
    bid = tonumber(result_plr:getDataInt("id"))
    result_plr:free()
    else
    prize = 0
    bid = 0
    end
print(bid)
print(prize)
if bid ~= 0 and prize ~= 0 then
    db.executeQuery("UPDATE `bounty_hunters` SET `killed` = 1, `k_id`="..getPlayerGUID(cid)..", `kill_time` = " .. os.time() .. " WHERE `id`  = "..bid..";")
    doPlayerAddMoney(cid,prize*1000[B]*2[/B])
    doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,'[BOUNTY HUNTERS] You killed hunted player, so you gained the reward!')
end    
---- BOUNTY HUNTERS END -----
end
return TRUE
end

or not?


thanks alot rep+ but there is still 1 problem after the guy who is hunted got killed it doesnt remove the hunt from website anyone knows how to fix this?

thanks in advance
 
Good job mate, I'm sure that many people needed this.
 
@up

Working! A reputation point for you!

But it gives twice more money than payed after you kill hunted player. To change find this line:

Code:
doPlayerAddMoney(cid,prize*1000*2)
and change it to:

Code:
doPlayerAddMoney(cid,prize*1000)
otherwise players will clone money.

:D

yeah i know thanks xD i just added *2 for quinkan =)

and @up:

Did you change something in the script?
 
Ammm using this:
Code:
<blink style=\"color: COLOR;\">TEXT</blink>



forget it, it dont removes the player from the list xD

i tryed that blink but it doesnt work for other people :S.

i can only see it but not other and if anyone could release script that deletes hunt after player getting killed by the first person would be great :).


thanks in advance
 
i tryed that blink but it doesnt work for other people :S.

i can only see it but not other and if anyone could release script that deletes hunt after player getting killed by the first person would be great :).


thanks in advance

It doesnt work on IExplore xD use firefox tell them to use Firefox =D
 
I have problem ;/

When I'm using default layout (tibiacom or darkritual) it works right, but when i change to my own layout, it gives this:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\accmaker\bounty-hunters.php on line 44
I don't know why, but i think, that it may be a table? Tibiacom and darkritual have got bigger window than my layout, so...

HELP ME =/
 
Back
Top