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

Get Item from Shop <--- Save player.

Zonet

Web Developer
Joined
Sep 1, 2008
Messages
4,393
Reaction score
52
Location
Tibia VS RL-life, guess whos back?
I want a script like when someone receive item from shop, then his character should be saved after he got the item.

Also to make the Players saves, if the server crashes or something like that.

Anyone know how to make?
 
Nooouu, just jocking to get 1 more post to my counter XDDD

doSavePlayer(cid) or savePlayer(cid) to shopsystem.lua after:

if received_item == RETURNVALUE_NOERROR then
--paste it here

Sadly it will work only on TFS 0.3 :()
 
Nooouu, just jocking to get 1 more post to my counter XDDD

doSavePlayer(cid) or savePlayer(cid) to shopsystem.lua after:

if received_item == RETURNVALUE_NOERROR then
--paste it here

Sadly it will work only on TFS 0.3 :()

i was looking for some function like that but did not find it :p well you did tell him what to do.
 
Nooouu, just jocking to get 1 more post to my counter XDDD

doSavePlayer(cid) or savePlayer(cid) to shopsystem.lua after:

if received_item == RETURNVALUE_NOERROR then
--paste it here

Sadly it will work only on TFS 0.3 :()


i tried it

[24/02/2009 12:32:38] data/globalevents/scripts/shop.lua:57: attempt to call global 'doSavePlayer' (a nil value)
[24/02/2009 12:32:38] stack traceback:
[24/02/2009 12:32:38] data/globalevents/scripts/shop.lua:57: in function <data/globalevents/scripts/shop.lua:7>
[24/02/2009 12:32:38] [Error - GlobalEvents::eek:nThink] Couldn't execute event: shop
 
You pasted it in wrong version or you're not using 0.3.

#doSavePlayer(cid) == savePlayer(cid), its same function, just renamed in TFS 0.3 ;p
 
Back
Top