Page 1 of 1

change Class / SwapEquipmentItem - problem solved!

Posted: Thu Apr 08, 2010 4:35 am
by darknero
i want to change the equipment to set2 (subclass) after class change. what i do wrong?

location: Varanas/ Classhall

Code: Select all

<waypoints type="RUN">
	<!-- #  1 --><waypoint x="5524" z="-4228">		
		player:rest(1)
		player:target_NPC("Klassenverwalterin")
		player:rest(1)
		RoMScript("ChoiceOption(1)")
		player:rest(1)
		RoMScript("ExchangeClass(EXCHANGECLASS_SUBCLASS, EXCHANGECLASS_MAINCLASS)")
		player:rest(1)

		RoMScript("SwapEquipmentItem()")  <!-- #  problem -->

		printf("We where running for %s seconds\n", os.difftime(os.time(),player.BotStartTime_nr) - player.Sleeping_time );
		printf("this are %s minutes.\n", (os.difftime(os.time(),player.BotStartTime_nr) - player.Sleeping_time)/60 );
		printf("or %s hours.\n", ((os.difftime(os.time(),player.BotStartTime_nr) - player.Sleeping_time)/60)/60 );
		printf("We have killed %s NPCs.\n", player.Fights );
	error("Bot finished", 0); -- Not really an error, but it will drop us back to shell.
	</waypoint>
</waypoints>
API:SwapEquipmentItem (Runes of Magic Wiki)

Re: change Class / SwapEquipmentItem - problem

Posted: Thu Apr 08, 2010 10:51 am
by raff
try

Code: Select all

RoMScript("SwapEquipmentItem();");

Re: change Class / SwapEquipmentItem - problem solved

Posted: Fri Apr 09, 2010 4:29 am
by darknero
big thx! problem solved