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

Solved Problem with some creaturescripts at onLogin

omarwsk

New Member
Joined
Mar 8, 2009
Messages
16
Reaction score
0
Hello guys i just tryed to add 2 different scripts in my ot, my OT is an tfs 1.0 with the client 10.41
i tryed to add these scripts

https://otland.net/threads/tfs-1-0-slot-system-first-1-0-upgrade.206697/
https://otland.net/threads/tfs-1-x-revive-system.229948/

i have added right all of that, and registered the events on revive system, but when i try to log in a char, this error appear in my console

Pw1oZbM.png

edit: here is the another error
2OSahJG.png




the same error on both scripts


sorry for the bad english
 
Last edited:
TFS 1.0 still uses the creatureid instead of userdata as parameter.
So you can change player in the main function to cid and add under that local player = Player(cid) or just local player = Player(player), since player won't be userdata in TFS 1.0 but the creatureid.
 
TFS 1.0 still uses the creatureid instead of userdata as parameter.
So you can change player in the main function to cid and add under that local player = Player(cid) or just local player = Player(player), since player won't be userdata in TFS 1.0 but the creatureid.

It works :D THX
i was thinking something like the function onlogin doesnt work with my ot but i don't know much of LUA and i don't know how to fix it xD
love you :)

EDIT:
but now i got this problem in the revive script

UrSkWpF.png
 
Last edited:
Back
Top