how would i?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
Golbez
Posts: 66
Joined: Sat Aug 02, 2008 8:27 pm

Re: how would i?

#21 Post by Golbez » Wed Feb 22, 2012 11:39 am

rock5 wrote:
Golbez wrote:if 90 >= inventory:itemTotalCount(0) then
I thought you had changed this to what I said. You did reply to that post.

What this does is if you have less than 90 free spaces left then it will go to the merchant. So if you have 2 or 3 bags, you will always go to the merchant. If you have 4 bags then it will go to the merchant when 1 bag fills. I don't think that's what you intended.

What I said you should do is this.

Code: Select all

if 10 >= inventory:itemTotalCount(0) then
I think I know what happened. You thought I had miss typed it. :) It should be 10 if you want it to go to the merchant when only 10 spaces left.

ohhh. i thought i ment it would fill 90 slots ^,^

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
   <onLoad>
      changeProfileOption("INV_AUTOSELL_ENABLE", true)
   </onLoad>
   <!-- #  1 --><waypoint x="-3947" z="4177" y="1" tag="start">   </waypoint>
   <!-- #  2 --><waypoint x="-4095" z="3967" y="-4">   </waypoint>
   <!-- #  3 --><waypoint x="-4152" z="3701" y="-2">   </waypoint>
   <!-- #  4 --><waypoint x="-4509" z="3601" y="12">   </waypoint>
   <!-- #  5 --><waypoint x="-4732" z="3590" y="11">
      yrest(99);
      if 10 >= inventory:itemTotalCount(0) then
         printf("Move To Npc to empty bags")
         __WPL:setWaypointIndex(__WPL:findWaypointTag("to merchant"))
      else
         printf("Bags do not need to be emptied yet")
      end
	</waypoint>
   <!-- #  6 --><waypoint x="-4850" z="3710" y="7" tag="continue">   </waypoint>
   <!-- #  7 --><waypoint x="-4952" z="3808" y="5">   </waypoint>
   <!-- #  8 --><waypoint x="-4973" z="3994" y="1">   </waypoint>
   <!-- #  9 --><waypoint x="-4823" z="4077" y="-1">   </waypoint>
   <!-- # 10 --><waypoint x="-4609" z="4049" y="4">   </waypoint>
   <!-- # 11 --><waypoint x="-4513" z="4272" y="1">   </waypoint>
   <!-- # 12 --><waypoint x="-4466" z="4495" y="-6">   </waypoint>
   <!-- # 13 --><waypoint x="-4449" z="4723" y="4">   </waypoint>
   <!-- # 14 --><waypoint x="-4074" z="4629" y="-8">   </waypoint>
   <!-- # 15 --><waypoint x="-4103" z="4385" y="-8">
      __WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
   </waypoint>

   <!-- #  1 --><waypoint x="-4947" z="3455" y="0" tag="to merchant">   </waypoint>
   <!-- #  2 --><waypoint x="-5036" z="3399" y="-4">   </waypoint>
   <!-- #  3 --><waypoint x="-5126" z="3337" y="-110">   </waypoint>
   <!-- #  4 --><waypoint x="-5100" z="3276" y="-108">
		yrest(1000)
		player:merchant("Kenen Maift")
		yrest(100)
		if inventory:itemTotalCount(206757) > 100 then
			inventory:findItem(206757):delete()
			printf("Dropped Extra Blood")
		end
		yrest(100)
		if inventory:itemTotalCount(206405) > 100 then
			inventory:findItem(206405):delete()
			printf("Dropped Extra Meat")
		end
		printf("Bags emptied")
	</waypoint>
   <!-- #  5 --><waypoint x="-5119" z="3312" y="-110">   </waypoint>
   <!-- #  6 --><waypoint x="-5127" z="3362" y="-112">   </waypoint>
   <!-- #  7 --><waypoint x="-5362" z="3394" y="-114">   </waypoint>
   <!-- #  8 --><waypoint x="-5361" z="3597" y="-107">   </waypoint>
   <!-- #  9 --><waypoint x="-5359" z="3742" y="-65">   </waypoint>
   <!-- #  10 --><waypoint x="-5347" z="3842" y="-43">   </waypoint>
   <!-- #  11 --><waypoint x="-5316" z="3974" y="-28">   </waypoint>
   <!-- #  12 --><waypoint x="-5248" z="4099" y="-19">   </waypoint>
   <!-- #  13 --><waypoint x="-5121" z="4073" y="0">
      __WPL:setWaypointIndex(__WPL:findWaypointTag("continue"))
   </waypoint>
</waypoints>

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: how would i?

#22 Post by abron1 » Wed Feb 22, 2012 10:36 pm

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="-15146" z="40247" y2="601" tag="farm"> player:dismount()  </waypoint>
	<!-- #  2 --><waypoint x="-14949" z="40041" y="579">
	 local dura = inventory:getMainHandDurability();
   	printf("Durability:%s\n", dura);
   	if( 65 > dura ) then
      	__WPL:setWaypointIndex(__WPL:findWaypointTag("npc"));
   	end 
	</waypoint>
	<!-- #  3 --><waypoint x="-14821" z="40015" y="595">	</waypoint>
	<!-- #  4 --><waypoint x="-14644" z="40026" y="600">	</waypoint>
	<!-- #  5 --><waypoint x="-14625" z="40235" y="620">	</waypoint>
	<!-- #  6 --><waypoint x="-14832" z="40056" y="592">	</waypoint>
	<!-- #  7 --><waypoint x="-14963" z="40070" y="579">	</waypoint>
	<!-- #  8 --><waypoint x="-15184" z="40271" y="602">	</waypoint>
	<!-- #  9 --><waypoint x="-15302" z="40192" y="612">	</waypoint>
	<!-- # 10 --><waypoint x="-15170" z="40250" y="600">
	if 3 >= inventory:itemTotalCount(0) 
			then __WPL:setWaypointIndex(__WPL:findWaypointTag("npc"));
			else __WPL:setWaypointIndex(__WPL:findWaypointTag("farm"));
		end
	</waypoint>
	
	<!-- #  1 --><waypoint x="-15133" z="40284" y="598" type="TRAVEL" tag="npc"></waypoint>
	<!-- #  2 --><waypoint x="-15290" z="40211" y="614" type="TRAVEL"> 	</waypoint>
	<!-- #  3 --><waypoint x="-15445" z="40125" y="602" type="TRAVEL">	
              if not player:hasBuff("Horse") then
	player:mount()
	end
              </waypoint>
	<!-- #  4 --><waypoint x="-15553" z="40000" y="602" type="TRAVEL">	</waypoint>
	<!-- #  5 --><waypoint x="-15628" z="39895" y="606" type="TRAVEL" tag="back">	</waypoint>
	<!-- #  6 --><waypoint x="-15607" z="39813" y="605" type="TRAVEL">	</waypoint>
	<!-- #  7 --><waypoint x="-15567" z="39817" y="606" type="TRAVEL">		player:merchant("Fadiya Royil");
	</waypoint>
	<!-- #  9 --><waypoint x="-15613" z="39815" y="605" type="TRAVEL">
	if inventory:itemTotalCount("Poison Anteater Sac") > 1000 then 
   	__WPL:setWaypointIndex(__WPL:findWaypointTag("mail"))
   	end  	</waypoint>
	<!-- # 10 --><waypoint x="-15613" z="39929" y="606" type="TRAVEL">	</waypoint>
	<!-- # 11 --><waypoint x="-15519" z="40013" y="604" type="TRAVEL">	</waypoint>
	<!-- # 12 --><waypoint x="-15476" z="40121" y="597" type="TRAVEL">	</waypoint>
	<!-- # 13 --><waypoint x="-15401" z="40166" y="610" type="TRAVEL">	</waypoint>
	<!-- # 14 --><waypoint x="-15252" z="40190" y="612" type="TRAVEL">	</waypoint>
	<!-- # 15 --><waypoint x="-15146" z="40252" y="601" type="TRAVEL">
	__WPL:setWaypointIndex(__WPL:findWaypointTag("farm"));
	</waypoint>
	
	<!-- #  1 --><waypoint x="-15564" z="39815" y="606" type="TRAVEL" tag="mail">	</waypoint>
	<!-- #  2 --><waypoint x="-15642" z="39791" y="603" type="TRAVEL">	</waypoint>
	<!-- #  3 --><waypoint x="-15658" z="39701" y="590" type="TRAVEL">	</waypoint>
	<!-- #  4 --><waypoint x="-15687" z="39699" y="590" type="TRAVEL">
	player:target_Object("Mailbox",1000) yrest(300); 
   	sendMacro("ChoiceOption(1);"); yrest(400);
      	UMM_SendByStackSize("Mailtoon",{"Poison Anteater Sac"},"max") 
     	UMM_SendByStackSize("Mailtoon",{"Large Claw Bone"},"max")
	UMM_SendByStackSize("Mailtoon",{"III"},"max") 
     	sendMacro("UseSkill(1,2)"); 
	__WPL:setWaypointIndex(__WPL:findWaypointTag("back"));
	</waypoint>
</waypoints>
ok waypoint works fine thanks for the help lisa.. i tried to get alittle fancy with it to mail if it has 1000 Poison Anteater Sac and now I get this error....[string "..."]:4: attempt to call gobal 'UMM_SendByName0rId' (a nil value)...I been copying and pasting from the dog meat script to try to get the mailing down and i do have rocks userfunction...after i get this part ill post so others can use it and you can bot for as long as want....oh and i need to figure out the GM detect and the this script will have all it needs to run with no problems

edit: The waypoint works perfect thanks rock and lisa..
All the corrections are made and can be copied and paste to use.
Attachments
anteaterMail.xml
(3.26 KiB) Downloaded 227 times
Last edited by abron1 on Thu Mar 08, 2012 6:30 pm, edited 5 times in total.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: how would i?

#23 Post by rock5 » Thu Feb 23, 2012 12:54 am

abron1 wrote:

Code: Select all

	local dura = inventory:getMainHandDurability();
 	printf("Durability:%s\n", dura);
	 if( 60 > dura ) then
 	player.free_flag1 = true;
	 end

	if( player.free_flag1 == true ) then 
	player.free_flag1 = false; 
	__WPL:setWaypointIndex(__WPL:findWaypointTag("npc"));
 	end 
You don't need to use the flag. Just do the action.

Code: Select all

	local dura = inventory:getMainHandDurability();
	printf("Durability:%s\n", dura);
	if( 60 > dura ) then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("npc"));
	end 
abron1 wrote: i tried to get alittle fancy with it to mail if it has 1000 Poison Anteater Sac and now I get this error....[string "..."]:4: attempt to call gobal 'UMM_SendByName0rId' (a nil value)...

Code: Select all

UMM_SendByNameOrId("maintoon",{"Poison Anteater Sac"}) yrest(10000); 
This looks fine. I don't see any errors. You know you dont need a long wait after the mail functions because the functions don't return until they are finished sending.

If you want to send only full stacks, there is a mail function for that.

Code: Select all

UMM_SendByStackSize("maintoon",{"Poison Anteater Sac"},"max")
That should only send full stacks of Poison Anteater Sac.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: how would i?

#24 Post by abron1 » Thu Feb 23, 2012 4:46 pm

thanks rock but i still get the same error...maybe i installed the mail function in the wrong place i have your mail mod in the rom folder is there somethings else i need i read all your instructions but there must be something i did wrong and i aslo have you rommail mod addon so i don't know what the problem is.... is there something i need to put in my profile? oh and made the changes you suggested

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: how would i?

#25 Post by rock5 » Thu Feb 23, 2012 7:28 pm

The UltimateMailMod goes in the "Runes of Magic/Interface/Addons" folder. You'll know if it is working if you see the UMM frame when you open the mailbox in game. The userfunction file goes into the "rom/userfunctions" folder.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: how would i?

#26 Post by abron1 » Fri Feb 24, 2012 1:59 am

ok got it to work now i thought the "Rom folder" was the runes of magic/addon folder and had the user functions in the wrong spot thanks alot. i want to add the goodies functions and test then ill post for all to use. now that i think about it.. it can be used if you copy it and paste it because the error was on me putting the mail function in the wrong spot

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests