Page 1 of 1

Using teleporter.

Posted: Thu Oct 21, 2010 7:04 am
by gloover
How can I use the teleporter NPC, to teleport, without using the old function of mouseclicks?
There are mostly 4 fields - one of those - is f.e. "teleport to Varanas"! - is it possible to select this option being out of ROM window (btw. its minimized).

2. Question: How to bring em going to sell and repair, only when my inventory bag is full?

thx in advance!

Re: Using teleporter.

Posted: Thu Oct 21, 2010 7:06 am
by swietlowka
for teleport use player:target_Object(_objname, _waittime, _harvestall, _donotignore, _evalFunc);
from http://www.solarstrike.net/wiki/index.p ... _Functions and the use ChoseOption function for telporting and yrest to w8 some time to not let it unstick-logout,

Re: Using teleporter.

Posted: Thu Oct 21, 2010 9:43 am
by gloover
This doesn't help me - could u post an example of code line, please?

Re: Using teleporter.

Posted: Thu Oct 21, 2010 9:48 am
by swietlowka
no problem, but asap im in home i just dont have it in work :P

Re: Using teleporter.

Posted: Thu Oct 21, 2010 11:04 am
by swietlowka
player:target_NPC("Teleporter_name_here"); yrest(1000); sendMacro("ChoiceOption(1);"); yrest(9000);

number in choice option is the number of option in the dialog to chose for teleporting

Re: Using teleporter.

Posted: Fri Oct 22, 2010 5:06 am
by gloover
Thank U very much, works great!