Recal locations as skill?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Recal locations as skill?

#1 Post by Germangold »

Hi
i do have 6 KS farming Chars and finished a nice script for a few things

1. recall to reifort camp
2. go to postbox and send all money to char XY
3. go to NPC Kulade and enter the house
4. talk to 3 housemaid npc 5x to get as many luck powder
5 . leave the house
6. press a desingated key to tranport back to Dust Devil Canyon

This is my recall function

Code: Select all

function myrecall()
	if 	(player.Name == _firstChar) then
		maidone = "LALAL"; maidtwo = "Lkdkd"; maidtre = "thisname";
		waitForLoadingScreen();
	end
	if	(player.Name == _secondChar) then
		maidone = "Dhaklor"; maidtwo = "Kkasd"; maidtre = "thisname";
		waitForLoadingScreen();
	end
	if	(player.Name == _thirdChar) then
		maidone = "Christine Benjamins"; maidtwo = "Raj Charles"; maidtre = "Daniele Mistres";
		waitForLoadingScreen();
	end
end
each char has a different Teleport to Reifort position
easier would be something like player:cast("Teleport: Reifort Camp"); how do i achive this?

Sometime the script hangs or sth goes wrong
what i need to implement is sth like

if (Recall has Cooldown) and (zoneid == 6) or (zoneid ==1006) then
loadPaths("KStoCaskNoTurtle");
end

But I need some help here.

Code: Select all

if (zoneid == 10) then
		-- already in Reifort Camp
		__WPL:setWaypointIndex(__WPL:findWaypointTag("reifort"));
	end
	if	(zoneid == 400) then
		-- already in house
		__WPL:setWaypointIndex(__WPL:findWaypointTag("thehouse"));
		
	end
	if  (zoneid == 6) or (zoneid == 1006) then
		-- both id's for Dust Devil Canyon
	 	myrecall();
end

EDIT:

something like this
<skill name="RECALL_REIFORT" id="???????" cooldown="3600" target="self" casttime="6" />
Last edited by Germangold on Tue Aug 09, 2011 7:06 pm, edited 1 time in total.
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Recal locations as skill?

#2 Post by Germangold »

SlashCommand("/cast Transport: Reifort");

just works fine awesome
kanta
Posts: 424
Joined: Thu Nov 11, 2010 4:08 pm

Re: Recal locations as skill?

#3 Post by kanta »

With some bosses I need to make sure one of my skills is not on cooldown. This is the code I use (thanks go to Rock)

Code: Select all

         local cooldown, remaining = RoMScript("GetSkillCooldown(4,1);")
            if remaining > 1 then
               player:rest(remaining)
               end;
Scout/Knight/Rogue 70/66/66
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Recal locations as skill?

#4 Post by Germangold »

Code: Select all

	repeat zoneid = RoMScript("GetZoneID()") until zoneid
	
	if (zoneid == 10) then
		-- reifort camp
		__WPL:setWaypointIndex(__WPL:findWaypointTag("reifort"));
	end
	if	(zoneid == 400) then
		-- already in house
		__WPL:setWaypointIndex(__WPL:findWaypointTag("thehouse"));
		
	end
	if  (zoneid == 6) or (zoneid == 1006) then
		local cooldown, remaining = sendMacro("GetActionCooldown(12);");
		-- Action 12 should be as stanard the recall spell
			if remaining == 0 then
				myrecall();
				SlashCommand("/cast Transport: Reifort");
			else
				__WPL:setWaypointIndex(__WPL:findWaypointTag("gogogo"));
			end
	end
works fine fore my now :D
Post Reply