crispy_256
New Member
- Joined
- Sep 18, 2014
- Messages
- 10
- Reaction score
- 1
I've read all over the forums and I've looked to find how to change the item drop percentage.
I'm using Uniform Server Zero and MySQL
I can't find anything in my phpMyAdmin that has to do with item loss.
I've tried to type
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, percent)
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, percent)
in my login.lua but I get this error
[20/11/2014 00:05:45] Lua Script Error: [CreatureScript Interface]
[20/11/2014 00:05:45] data/creaturescripts/scripts/login.lua
nLogin
[20/11/2014 00:05:45] data/creaturescripts/scripts/login.lua:3: attempt to call global 'doPlayerSetLossPercent' (a nil value)
[20/11/2014 00:05:45] stack traceback:
[20/11/2014 00:05:45] [C]: in function 'doPlayerSetLossPercent'
[20/11/2014 00:05:45] data/creaturescripts/scripts/login.lua:3: in function <data/creaturescripts/scripts/login.lua:1>
I know I'm using an older version of TFS but for what I need for my server I think it will work nicely....I just need to change the item drop percentage.
Thanks in advance!
P.S. I'd like to give rep+ for whoever helps....but I don't really know how lol
I'm using Uniform Server Zero and MySQL
I can't find anything in my phpMyAdmin that has to do with item loss.
I've tried to type
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, percent)
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, percent)
in my login.lua but I get this error
[20/11/2014 00:05:45] Lua Script Error: [CreatureScript Interface]
[20/11/2014 00:05:45] data/creaturescripts/scripts/login.lua
[20/11/2014 00:05:45] data/creaturescripts/scripts/login.lua:3: attempt to call global 'doPlayerSetLossPercent' (a nil value)
[20/11/2014 00:05:45] stack traceback:
[20/11/2014 00:05:45] [C]: in function 'doPlayerSetLossPercent'
[20/11/2014 00:05:45] data/creaturescripts/scripts/login.lua:3: in function <data/creaturescripts/scripts/login.lua:1>
I know I'm using an older version of TFS but for what I need for my server I think it will work nicely....I just need to change the item drop percentage.
Thanks in advance!
P.S. I'd like to give rep+ for whoever helps....but I don't really know how lol