The WoTMud Wiki Homeland guide

... A place to ask for help on any topic whether it be starting out to player killing to IT issues.
Kaitrienne
Posts: 4
Joined: Sun Feb 07, 2016 12:23 am

Re: The WoTMud Wiki Homeland guide

Post by Kaitrienne » Tue Feb 09, 2016 11:17 pm

I just upload to this site when I was stat: http://wotmad.herokuapp.com/stats/

It's also easy enough to download the data and create a pivot table to calculate odds of whatever I'm looking for.

Edakim
Posts: 5
Joined: Wed Jan 20, 2016 5:13 pm

Re: The WoTMud Wiki Homeland guide

Post by Edakim » Wed Feb 10, 2016 3:47 pm

You don't happen to have a working zmud script for submitting to that do you Kait? I registered a few weeks ago and got my key, but couldn't find a script newer than three years old, and couldn't get that working...

Kaitrienne
Posts: 4
Joined: Sun Feb 07, 2016 12:23 am

Re: The WoTMud Wiki Homeland guide

Post by Kaitrienne » Wed Feb 10, 2016 8:50 pm

EDIT nvm the zmud script here doesn't work for me: http://wotmad.herokuapp.com/scripts/.

Admittedly I tend to find excuses to use spreadsheets as I love them so much. ;) So I just use a google doc spreadsheet and enter in my stats manually and have a formula parse the URL then click on it each time. (I just like having all my stats recorded in that sheet for quick comparisons. :) )

E.g.,
STR INT WIL DEX CON SUM URL
18 14 10 18 18 78 forumla is: =concatenate("http://wotmad.herokuapp.com/stats/submi ... con=",F781)

Substitute APIKEY for your own private apikey which you get when you register on that website.
Last edited by Kaitrienne on Wed Feb 10, 2016 10:01 pm, edited 1 time in total.

Mantorok
Posts: 513
Joined: Thu Jun 18, 2015 11:56 pm

Re: The WoTMud Wiki Homeland guide

Post by Mantorok » Wed Feb 10, 2016 8:58 pm

lol you are all getting so fancy, and here I am with my word document lists. I feel so old school, cause it isn't even in an Excel sheet.

Kaitrienne
Posts: 4
Joined: Sun Feb 07, 2016 12:23 am

Re: The WoTMud Wiki Homeland guide

Post by Kaitrienne » Wed Feb 10, 2016 10:00 pm

TL/DR: script didn't work so I modified it and pasted it below.
Figured I'd test the zmud code. Here are the steps I followed:
1. Copied the zmud code from here: http://wotmad.herokuapp.com/scripts/3/w ... ubmission/
2. Pasted it into the zmud command prompt (all at once) and pressed enter.
3. Logged into the wotmad.herokuapp.com website and then went here http://wotmad.herokuapp.com/stats/contribute/ and copied my API key.
4. In the zmud command prompt, typed 'WM_SETKEY mykey' substituting mykey with my actual key. And then I pressed enter.
I correctly received the message, "Setting wotmad API key to mykey"
5. Killed 3 saplings to get to level 3.
6. The script automatically detected I was level three, opened Internet Explorer (eww) and tried to use the generated URL but failed.

7. Looking at the URL I saw discrepancies from what I use in a spreadsheet to what the script generates:
-Script generates an extra '/' in it, e.g., http://wotmad.herokuapp.com//stats...
-Script generates 'ashtml=true' which is not what I use for my spreadsheet.
-order of variables in script is different than in what I use, e.g., name/homeland/sex... I use name/sex/faction/...

8. I modified the script to make it match the URL I use for my spreadsheet.

9. Tested it twice and it worked.

10. Deleted the script and then reinstalled my version. Tested it and it worked.

As the original script didn't work, here's my new version:

Code: Select all

#CLASS {WM_STAT}
#ALIAS WM_SETKEY {#SHOW Setting wotmad API key to %1;#VAR WM_API_KEY %1}
#VAR WM_API_KEY {}
#VAR WM_API_ROOT {http://wotmad.herokuapp.com/}
#VAR WM_STAT_DORECORD {0}
#VAR WM_STAT_NAME {}
#VAR WM_STAT_HOMELAND {}
#VAR WM_STAT_SEX {}
#VAR WM_STAT_FACTION {}
#VAR WM_STAT_CLASS {}
#TRIGGER {You are a (%d) year old ({male|female}) ({human|trolloc|seanchan}) (%w).$} {#var WM_STAT_SEX "%2" _nodef WM_STAT;#var WM_STAT_FACTION "%3" _nodef WM_STAT;#var WM_STAT_CLASS "%4" _nodef WM_STAT}
#TRIGGER {This ranks you as (%w) {of|the} (*) ~(Level (%d)~).$} {#if (%3<3) {#var WM_STAT_DORECORD 1 _nodef WM_STAT;#var WM_STAT_NAME "%1" _nodef WM_STAT;#var WM_STAT_HOMELAND "%2" _nodef WM_STAT};#if (%3=3) {stat};#if (%3>3) {#var WM_STAT_DORECORD 0 _nodef WM_STAT}}
#TRIGGER {You gain a level!$} {score}
#TRIGGER {Your base abilities are: Str:(%d) Int:(%d) Wil:(%d) Dex:(%d) Con:(%d).$} {#IF (@WM_STAT_DORECORD=1) {#IF (@WM_API_KEY="") {#SHOW "Your API key is not set. Get it from the site and enter it by typing WM_SETKEY <key here> in the command area."} {#SHOW "Submitting stat data to wotmad. Close the browser window after submission.";#URL %concat( @WM_API_ROOT, "stats/submit/?apikey=", @WM_API_KEY, "&name=", @WM_STAT_NAME, "&sex=", @WM_STAT_SEX, "&faction=", @WM_STAT_FACTION, "&class=", @WM_STAT_CLASS, "&homeland=", @WM_STAT_HOMELAND, "&strength=", %1, "&intel=", %2, "&wil=", %3, "&dex=", %4, "&con=", %5);#VAR WM_STAT_DORECORD 0 _nodef WM_STAT}}}
#TRIGGER {You feel dizzy as time seems to spin backwards...$} {#var WM_STAT_DORECORD 1 _nodef WM_STAT}
#TRIGGER {Select a class:} {#var WM_STAT_DORECORD 1 _nodef WM_STAT}
#TRIGGER {^You were rented for %d.%d days.} {score}
#CLASS 0
Instructions
1. Copy/paste the whole script at once into the zmud prompt and press enter.
2. log into http://wotmad.herokuapp.com and then go to http://wotmad.herokuapp.com/stats/contribute/. Copy your API key.
3. In the zmud prompt type 'wm_setkey yourkey' and press enter (without the quotes) and substituting yourkey for your API key that you just copied.
4. Type stat and then enter. Then type score then enter.
5. At level 3 your stats should automatically be uploaded to the database. Go here to verify they were uploaded: http://wotmad.herokuapp.com/stats
6. Let me know if this doesn't work. (Worked fine for me.)
Last edited by Kaitrienne on Wed Feb 10, 2016 10:07 pm, edited 1 time in total.

Kaitrienne
Posts: 4
Joined: Sun Feb 07, 2016 12:23 am

Re: The WoTMud Wiki Homeland guide

Post by Kaitrienne » Wed Feb 10, 2016 10:06 pm

@Mantorok Excel is so old -- it's all about Google Drive now, man. It autosaves on the server so no need worrying about your computer corrupting files or the hard drive dying. It also includes version control. I LOVE google drive for docs/spreadsheets and dropbox for code. :)

Post Reply