Page 1 of 1

Make Transport Point

Posted: Thu Oct 23, 2014 12:52 pm
by Bat90
Hi guys wanted to ask does some1 know the code foor the bot so that my chars make transport point and later when needed they port themselfs to that point?

Re: Make Transport Point

Posted: Thu Oct 23, 2014 6:14 pm
by rock5
I believe it is

Code: Select all

TB_SetBookMark(select)
Where 'select' is the slot you want to put the mark in. It looks like if it's -1 then it will put the mark in the first empty slot. That's probably the best to use, so

Code: Select all

TB_SetBookMark(-1)
I've previously posted code to use a transport point http://solarstrike.net/phpBB3/viewtopic ... 294#p36294.

Re: Make Transport Point

Posted: Fri Oct 24, 2014 3:50 am
by Edz
i get always an error when i got to the this row :

...attempt to call global 'TB_SetBookMark' (a nil value)

whats a nil value??

Maybe my client is in German??

Re: Make Transport Point

Posted: Fri Oct 24, 2014 4:09 am
by rock5
nil means it's empty. It shouldn't be empty. The function does exist and it looks like it's spelt correctly so I don't know why it says that. Maybe you should show me how you used it.

Re: Make Transport Point

Posted: Fri Oct 24, 2014 4:55 am
by Edz

Code: Select all

<!-- # 25 --><waypoint x="-1399" z="-5175" y="1">	
	
	yrest(300)
		TB_SetBookMark(-1)
		
	yrest(300)
	</waypoint>
	<!-- # 26 --><waypoint x="-1491" z="-4937" y="-8">	</waypoint>
i want to mark the point on my way so i can transport later back to this.

Re: Make Transport Point

Posted: Fri Oct 24, 2014 5:36 am
by rock5
Ah I see. TB_SetBookMark is a gaame function, not a bot function. Try this

Code: Select all

RoMCode("TB_SetBookMark(-1)")