Script for LDoN/Adventure Merchant
Can anyone tell me what the perl script would be for turning in a stack of items to an adventure merchant and adding LDoN points based on the amount in the stack? ie. 1 unit or item = 1 point. But a stack of 1000 would equal 1000 points.
I have a script but its not working.. Here is my script. Code:
sub EVENT_ITEM { Code:
sub EVENT_ITEM { The problem is its not "awarding" the points. Maybe I need to zone to check (havent checked this to see) but its not updating immediately if thats the case. Any way, if anyone has insight into why this isnt working it would be greatly appreciated. I have scoured google, this forum, and the wiki but coming up empty on this. Thanks in advance! Edit: zoning isnt working =/ |
Quote:
|
Quote:
curly brackets didnt work :( gonna try some other stuff and will post back here with progress made (if any). |
Looks like I am just going to have to use the in game way of adding LDoN points (by selling items to adventure merchants). I am wondering if there is a script that will just look at all the "ldon point worthy" items in your inventory and remove them by clicking a "sell" or "exchange" keyword/link instead of having to do it manually. I suspect in order to do this I would need a script that could:
1. see what items, if any - you had in your inventory that had a LDoN point value to them 2. remove those items from your inventory 3. credit you with points associated to whatever items were removed. 4. tell you how many points it credited to you. Does anyone know if this would even be possible? Edit: Theres THIS that could be used to facilitate that but how would you use it to add points? Code:
quest::collectitems(item_id, remove) |
The one thing I do remember seeing somewhere on these forums, was
someone changing all the adventure merchants to regular (41) with an sql query that used a formula to price everything with a value somewhat equivalent to the ldon points. (buying the items with plat). As for where that thread is, I have no idea. I remember seeing it though. It's another option, if you can find it. |
I got it working. Natedog (actually thinking of calling him NateGod instead! :P) helped me. Theres no way I could have gotten it working with out him and no way I could have figured out the code below. I am posting here to give him credit and thanks and going to post the code below so that it may help others in the future!
Code:
sub EVENT_SAY { |
All times are GMT -4. The time now is 03:06 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.