Page 1 of 1
I want to sell items to npc
Posted: Mon Dec 10, 2012 7:34 pm
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
Re: I want to sell items to npc
Posted: Mon Dec 10, 2012 7:36 pm
by mrtgtr
in the meantime It must go town for sell items when bag is full...
Re: I want to sell items to npc
Posted: Mon Dec 10, 2012 8:14 pm
by Ego95
At your waypoint where it should sell the items put this command and fill in the name of the NPC
.
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)
Re: I want to sell items to npc
Posted: Mon Dec 10, 2012 8:25 pm
by mrtgtr
AlterEgo95 wrote:At your waypoint where it should sell the items put this command and fill in the name of the NPC
.
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 ?
Re: I want to sell items to npc
Posted: Mon Dec 10, 2012 8:55 pm
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
Re: I want to sell items to npc
Posted: Fri Dec 14, 2012 6:04 pm
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 ?
Re: I want to sell items to npc
Posted: Sun Dec 16, 2012 8:31 pm
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.