I want to sell items to npc

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
mrtgtr
Posts: 67
Joined: Wed Mar 21, 2012 5:09 pm

I want to sell items to npc

#1 Post by mrtgtr »

Sorry I am opening too much title.
I am provide item from kalin for sell, I want to go to town and sell items to NPC.
I can record waypoint to town from at the front of kalin, and then ? How I can sell from my bag II. page III.page IV.page V.page VI. page ?
In I. page has got impotant items it will not sell them.
thanx guys
mrtgtr
Posts: 67
Joined: Wed Mar 21, 2012 5:09 pm

Re: I want to sell items to npc

#2 Post by mrtgtr »

in the meantime It must go town for sell items when bag is full...
User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: I want to sell items to npc

#3 Post by Ego95 »

At your waypoint where it should sell the items put this command and fill in the name of the NPC

Code: Select all

player:merchant(npcName)
.
In the <onLoad> add

Code: Select all

	changeProfileOption("INV_AUTOSELL_ENABLE", true)
	changeProfileOption("INV_AUTOSELL_FROMSLOT", 1)
	changeProfileOption("INV_AUTOSELL_TOSLOT", 180)
	changeProfileOption("INV_AUTOSELL_QUALITY", "white, green, blue, purple")
Now you can change the values (this example would sell the slots 1 to 180 = all 6 bags and it would sell items of all qualities between white and purple)
mrtgtr
Posts: 67
Joined: Wed Mar 21, 2012 5:09 pm

Re: I want to sell items to npc

#4 Post by mrtgtr »

AlterEgo95 wrote:At your waypoint where it should sell the items put this command and fill in the name of the NPC

Code: Select all

player:merchant(npcName)
.
In the <onLoad> add

Code: Select all

	changeProfileOption("INV_AUTOSELL_ENABLE", true)
	changeProfileOption("INV_AUTOSELL_FROMSLOT", 1)
	changeProfileOption("INV_AUTOSELL_TOSLOT", 180)
	changeProfileOption("INV_AUTOSELL_QUALITY", "white, green, blue, purple")
Now you can change the values (this example would sell the slots 1 to 180 = all 6 bags and it would sell items of all qualities between white and purple)
thanx, how to sort ? vertical horzinal ? for exampla whichever is 56. slot

and how is when bag is full go to npc ?
User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: I want to sell items to npc

#5 Post by Ego95 »

You have to count horizontal

You could add

Code: Select all

function settings.profile.events.onSkillCast()
inventory:update()
If 1 > inventory:itemTotalCount(0) then
      loadPaths("WaypointFileToSell");
end
end
something like this should work. You can use __WPL:setWaypointIndex(__WPL:findWaypointTag("vendor")); too instead of the loadpath and then make some waypoints to the npc. The first waypoint to the vendor have to get a tag="vendor"> if you want to use my example.

AlterEgo95
mrtgtr
Posts: 67
Joined: Wed Mar 21, 2012 5:09 pm

Re: I want to sell items to npc

#6 Post by mrtgtr »

AlterEgo95 wrote:You have to count horizontal

You could add

Code: Select all

function settings.profile.events.onSkillCast()
inventory:update()
If 1 > inventory:itemTotalCount(0) then
      loadPaths("WaypointFileToSell");
end
end
something like this should work. You can use __WPL:setWaypointIndex(__WPL:findWaypointTag("vendor")); too instead of the loadpath and then make some waypoints to the npc. The first waypoint to the vendor have to get a tag="vendor"> if you want to use my example.

AlterEgo95

when invertory is full in kalin, char is trying to go for sell and char is going to wall and stuck.
I want to go for sell after leave to the kalin
How I set it ?
User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: I want to sell items to npc

#7 Post by lolita »

I gues, whan you farm KS you are in party, so you can try this

Code: Select all

function settings.profile.events.onSkillCast()
inventory:update()
If 1 > inventory:itemTotalCount(0) then
      RoMScript("LeaveParty()")
      waitForLoadingScreen()
      __WPL:setWaypointIndex(__WPL:findWaypointTag("vendor"));
end
end
and go to vendor from res point.
Life is a journey, not destination :D
Post Reply