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

Easy problem fix, need help please.

Xaiman

New Member
Joined
Feb 27, 2010
Messages
94
Reaction score
0
I can not for the life of me get this script to create a tp that has an actionid. creating the tp is no problem but when it come to giving that tp an action id... i cant do it >.<

i have tried...
doSetItemActionId (uid, 4024)
doItemSetAttribute(1387, "4024", item.actionid)

anything helps (im not a scripter so if its something obvious dont blame me :P)

When i put the dosetitemactionid and got an error in the console says it was trying to find it in the global.. but i guess it couldnt :P

Maybe if someone could give me the function for it i can put it in.
 
try:

Code:
local tp = doCreateTeleport(1387,topos, createpos)
doItemSetAttribute(tp, "aid" , 4024)
I'm not sure whether doCreateTeleport returns item uid, so if it doesn't work try changing tp to tp.uid in the second line
 
Last edited:
Back
Top