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

Well, it's working.. but not all of it.

I write in-game;
17:40 Me: !hunt 10, Kluku
17:40 [BOUNTY HUNTERS] Hunt has been added!

Then I check the website;
"Currently there are not any bounty hunter offers."

why?:/
 
masteuszx you can create a script to mod version? more simple and short.
thanks in advance
 
[02/03/2010 17:10:14] [Error - Npc interface]
[02/03/2010 17:10:14] data/npc/scripts/bountyhunters.lua:eek:nCreatureSay
[02/03/2010 17:10:14] Description:
[02/03/2010 17:10:14] data/lib/004-database.lua:68: [Result:getDataLong] Result not set!
[02/03/2010 17:10:14] stack traceback:
[02/03/2010 17:10:14] [C]: in function 'error'
[02/03/2010 17:10:14] data/lib/004-database.lua:68: in function 'getDataLong'
[02/03/2010 17:10:14] data/npc/scripts/bountyhunters.lua:23: in function 'checkName'
[02/03/2010 17:10:14] data/npc/scripts/bountyhunters.lua:59: in function 'callback'
[02/03/2010 17:10:14] data/npc/lib/npcsystem/npchandler.lua:390: in function 'onCreatureSay'
[02/03/2010 17:10:14] data/npc/scripts/bountyhunters.lua:7: in function <data/npc/scripts/bountyhunters.lua:7>


what can i do about that??
 
Almost great, I can add a bounty, it shows up on the data base... but it doesn't show up on the website.

why?
 
then you haven't set the right password of your database at xampp-->htdocs-->bounty

__/jikoe
 
Well, it's working.. but not all of it.

I write in-game;
17:40 Me: !hunt 10, Kluku
17:40 [BOUNTY HUNTERS] Hunt has been added!

Then I check the website;
"Currently there are not any bounty hunter offers."

why?:/



Check out on bounty.php, the first 3 lines:
PHP:
@mysql_connect("localhost","user","password");
@mysql_select_db("database");

"localhost" -> here write your IP
"user" -> here your database user
"Password" -> here your password
"database" -> here your database name.


Example:

PHP:
@mysql_connect("vtot.no-ip.org","Admin","123456789");
@mysql_select_db("tibia");
 
I got a little problem on the php, just on the view:

dibujoglt.png
 
Im SURE i wrote the right thing in bounty-hunters.php. it still doesn't show at the homepage :(

any ideas?

PS: dont tease my because my age -.-

Thanks, Krilleboy
 
Im SURE i wrote the right thing in bounty-hunters.php. it still doesn't show at the homepage :(

any ideas?

PS: dont tease my because my age -.-

Thanks, Krilleboy
p
lol im the same age as u :p, anyways u sure u added all (index.php, tables, etc) ??
 
Hello,

I just found this great script on Otland.net
First I used the !hunt option for my Ots, which worked fine.
Now I decided to use the Punisher NPC. There is one error in it tho..

The checkName function does not work for the NPC:
if checkName(msg) == TRUE then

I searched in the Dev-C++ for the function, it indeed isn't there. Also in the NPCHandler there is no such function, only getPlayerName (this is only for local)

[20/03/2010 20:25:34] [C]: in function 'dofile'
[20/03/2010 20:25:34] data/lib/004-database.lua:116: in function 'getResult'
[20/03/2010 20:25:34] data/npc/scripts/bountyhunters.lua:21: in function 'checkName'
[20/03/2010 20:25:34] data/npc/scripts/bountyhunters.lua:59: in function 'callback'
[20/03/2010 20:25:34] data/npc/lib/npcsystem/npchandler.lua:391: in function 'onCreatureSay'
[20/03/2010 20:25:34] data/npc/scripts/bountyhunters.lua:7: in function <data/npc/scripts/bountyhunters.lua:7>



I would appreciate it if anyone could help me out.

Thank,
Pimmie
 
Last edited:
Great script, thank you very much :)
Sugesstion: Let more players hunt one person - if this person will die player which kill him receive sum of hunting price which gave 2 players :)

Second suggestion: If player which pay for death is onnline write to him red message: XYZ died !
 
Hey there! This system is great but I've got the same error as Pimmie :s

[20/03/2010 20:25:34] [C]: in function 'dofile'
[20/03/2010 20:25:34] data/lib/004-database.lua:116: in function 'getResult'
[20/03/2010 20:25:34] data/npc/scripts/bountyhunters.lua:21: in function 'checkName'
[20/03/2010 20:25:34] data/npc/scripts/bountyhunters.lua:59: in function 'callback'
[20/03/2010 20:25:34] data/npc/lib/npcsystem/npchandler.lua:391: in function 'onCreatureSay'
[20/03/2010 20:25:34] data/npc/scripts/bountyhunters.lua:7: in function <data/npc/scripts/bountyhunters.lua:7>
 
evrything works fine its a great script accept for website

i get this

Warning: include(bounty-hunters.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\index.php on line 178

Warning: include() [function.include]: Failed opening 'bounty-hunters.php' for inclusion (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\index.php on line 178
 
Last edited:
Back
Top