Page 1 of 1

Ride & Dont Attack

Posted: Sat Oct 05, 2013 2:08 pm
by rido_knight
Hi i wrote some macro but i cant work properly -_-

i want to wait open bags and find Brown Horse (1 day) then use Brown horse...i write ;

Code: Select all

openGiftbags1To10(player.Level);
		yrest(2000);
		if mount then
		   mount:use()
           repeat
           player:update();
           until player.Casting == false
        else
           player:mount()
        end
		
		if( player.Level > 1) then
		   loadPaths("varanas");
		end

and i dont want to attack any mob..My char ride a horse but he dismount and attack mob.I need just ride.dont dismont,dont attack.what can i write on script ? sorry for my english thank you

Re: Ride & Dont Attack

Posted: Sat Oct 05, 2013 2:25 pm
by rock5
"if mount" does nothing because you haven't assigned any value to mount but you don't need to check if you have a mount. Just do the mount and if you have a mount, it will mount, else it wont. To make it not attack set the waypoint type to "TRAVEL" at the top of the waypoint file, eg.

Code: Select all

<waypoints type="TRAVEL">
Or if you want to change it at that point then use

Code: Select all

__WPL:setForcedWaypointType("TRAVEL")
You might have to do an inventory:update() after opening the bags.

So.

Code: Select all

      openGiftbags1To10(player.Level);
      yrest(2000);
      inventory:update()
      player:mount()
      
      if( player.Level > 1) then
         loadPaths("varanas");
      end

Re: Ride & Dont Attack

Posted: Sat Oct 05, 2013 2:46 pm
by rido_knight
rock5 wrote:"if mount" does nothing because you haven't assigned any value to mount but you don't need to check if you have a mount. Just do the mount and if you have a mount, it will mount, else it wont. To make it not attack set the waypoint type to "TRAVEL" at the top of the waypoint file, eg.

Code: Select all

<waypoints type="TRAVEL">
Or if you want to change it at that point then use

Code: Select all

__WPL:setForcedWaypointType("TRAVEL")
You might have to do an inventory:update() after opening the bags.

So.

Code: Select all

      openGiftbags1To10(player.Level);
      yrest(2000);
      inventory:update()
      player:mount()
      
      if( player.Level > 1) then
         loadPaths("varanas");
      end

Yeho man :D thank youuuu it works :D and i want to ask one question....How to refuse this suggestion ?

http://img34.imageshack.us/img34/3720/y19p.png

Re: Ride & Dont Attack

Posted: Sat Oct 05, 2013 3:00 pm
by rock5
You can try

Code: Select all

StaticPopup_EscapePressed()
or

Code: Select all

StaticPopup_OnClick(StaticPopup1,2)

Re: Ride & Dont Attack

Posted: Sun Oct 06, 2013 3:53 pm
by rido_knight
rock5 wrote:You can try

Code: Select all

StaticPopup_EscapePressed()
or

Code: Select all

StaticPopup_OnClick(StaticPopup1,2)


I will try it. Thank you ^_^