The West Stats
General
Home
News
Chat
Contact
Team
Help us
Information
Skills
Jobs
Quests
Buildings
Towns
Item sets
Item stats
Awards
Tools
Publicise skills
Publicise inventory
Job calculator
Best job items
Signature generator
Shops
General store
Tailor
Gunsmith
Items
Products
Weapons
Guns
Headgear
Neckbands
Clothing
Shoes
Animals
Secret & Rumoured
My Account
Login Register
|
Inventory Parser
The Inventory Parser lets you easily show other players what items you have in your inventory.. Once you have imported your information you will be given a link to give to your friends. The link will display the list of items and their info.
Publicising your inventory is easy. Just copy all the code below, and paste it in to a tab where The-West is open. You must have opened your inventory window before you do this. Then press enter!
| javascript:wsurl = 'http://weststats.com/incoming.php?type=inventpub&i=1&data=';co = '';count = 0;x = Bag.getInstance().items;for(var p in x) {var s = x[p].get_short();var t = x[p].get_type();var c = x[p].get_count_value();if(c > 1) {for (o=0;o<c;o++) {co += t.substring(0, 1) + ':' + s + ',';}count = count + c;}else{co += t.substring(0, 1) + ':' + s + ',';count = count + 1;}}if(count < 1) {new HumanMessage('This script must be ran after the inventory has been opened!');end();}w = Wear.wear;try {co += 'a!:' + w.animal.get_short() + ',';} catch (e) {}try {co += 'b!:' + w.body.get_short() + ',';} catch (e) {}try {co += 'f!:' + w.foot.get_short() + ',';} catch (e) {}try {co += 'h!:' + w.head.get_short() + ',';} catch (e) {}try {co += 'n!:' + w.neck.get_short() + ',';} catch (e) {}try {co += 'r!:' + w.right_arm.get_short() + ',';} catch (e) {}try {co += 'l!:' + w.left_arm.get_short() + ',';} catch (e) {}try {co += 'y!:' + w.yield.get_short() + ',';} catch (e) {}try {var cn = $('avatar').textContent.replace(Character.level, '');}catch (e){var cn = $('avatar').innerText.replace(Character.level, '');}co += cn; wsurl += co;wsurl += "&w=" + encodeURIComponent(location.href);document.location.replace(wsurl);end(); |
|
What is your opinion on forts?
|
|