Page 1 of 3 123 LastLast
Results 1 to 20 of 56

Thread: Scripting Your Own Pop-Up Windows.

  1. #1

    Scripting Your Own Pop-Up Windows.

    Scripts For Dummies!

    Since I figured out how to do this with the help of a friend earlier this week, i have had a deluge of people asking me how to do it. Hence, im gonna write a little thread on how its done, so that i can just give the link to anyone who asks me how to do it when they see my using it. Maybe someone could sticky it for me, as i think its pretty cool info, good to know.

    Right. The first thing you need to do is make sure you have a scripts folder. Go to your Anarchy Online folder, there should be a folder called "Scripts". If there isnt, make a new folder, and name it "Scripts"

    Next, you need to open up notepad.

    Right, paste the following in there, ill explain what it all means.

    <a href="text://Text Goes Here">Link Goes Here</a>

    Okay, the "<a href" tells Ao that you want to make a window that people can get up by clicking your link.

    The ="text://TestGoesHere" tells Ao what you want INSIDE that window

    And the >LinkGoesHere</a> Tells Ao what you want your link in the Chat window to say.

    So the script:

    <a href="text://Hey look i can script! Yey for me!">Clicky Clicky!</a>

    Would put a blue link called Clicky Clicky into the chat window, and when clicked on it would bring up a window that said "Hey look, i can script! Yey for me!"

    Thats about it, simple as =)

    As i figure out more stuff, ill post other stuff, such as how to add colours and whatnot.

    Enjoy =)

  2. #2
    Bump for new toyz to play with.

    Dextar

  3. #3
    Lol hi jekel.

    im the person that told him how to do it :P

    You forgot to say that at the beginning of the script you need to say what chat channel you want to send the script to.

    at begining of script, do /g "Clan OOC" for that channel... also do /v for viciinity, /t for team chat, and /o for org chat, and /g "Clan Shopping 1-50" for shopping

    e.g. the script would be:

    /g "Clan OOC" <a href="text://Text Goes Here">Link Goes Here</a>

    good luck

    Time for 2 page scripting now jekel... Also colors, alignments on the page, paragraphs.. I might add when i go tnothing better to do.
    Last edited by KingDuck; Nov 7th, 2005 at 22:42:04.

  4. #4
    Hah, yeah, Kindduck is a champion =)

    Also, if you dont put the channel you want to send it to in your script, which i dont advise, just do /scriptnamehere.txt in whatever channel your in to send it to that one, makes it easier.

  5. #5
    someone has a script pack posted here

    nice for getting some examples too

  6. #6
    there are a lot of html-like tags available...
    and href://text isnt the only href you can use
    heres a sample of some things you can do:
    Code:
    <a href="text://<font color=#FF0000>some examples:<br><a href='chatcmd:///s im l33t'><img src=rdb://156598></a></font>&lt; click on the picture<br><a href='chatcmd:///start http://www.google.com'>google</a><br><a href='chatcmd:///macro asd /assist asd'>Click here to make assit macro to asd</a><br><a href='chatcmd:///quit'>Thankfully FC dont has warnings on some chatcommands</a><br><a href='itemref://258545/258545/1'>A leet Pie</a> &lt; a link to item">click!</a>
    itemref syntax: itemref://lowid/highid/ql << lowid and highid can be copyed from auno/audb urls-s.. example: http://auno.org/ao/db.php?id=258545 or http://aomainframe.info/showitem.aspx?AOID=258545

    img syntax: the easyest way of finding out the nr for your item is again using auno/aodb: if you open a page with item on it theres a picture of it... right click the picture to find out its url... http://auno.org/res/aoicons/130518.gif or http://aomainframe.info/icons/130518.gif

    happy scripting

  7. #7
    Quote Originally Posted by nomaddamon
    there are a lot of html-like tags available...
    and href://text isnt the only href you can use
    heres a sample of some things you can do:
    Code:
    <a href="text://<font color=#FF0000>some examples:<br><a href='chatcmd:///s im l33t'><img src=rdb://156598></a></font>&lt; click on the picture<br><a href='chatcmd:///start http://www.google.com'>google</a><br><a href='chatcmd:///macro asd /assist asd'>Click here to make assit macro to asd</a><br><a href='chatcmd:///quit'>Thankfully FC dont has warnings on some chatcommands</a><br><a href='itemref://258545/258545/1'>A leet Pie</a> &lt; a link to item">click!</a>
    itemref syntax: itemref://lowid/highid/ql << lowid and highid can be copyed from auno/audb urls-s.. example: http://auno.org/ao/db.php?id=258545 or http://aomainframe.info/showitem.aspx?AOID=258545

    img syntax: the easyest way of finding out the nr for your item is again using auno/aodb: if you open a page with item on it theres a picture of it... right click the picture to find out its url... http://auno.org/res/aoicons/130518.gif or http://aomainframe.info/icons/130518.gif

    happy scripting
    Wohoo man, that Chatcmd is the one ive been looking for for so long .. Been trying loads of them to experiment like cc, chatcommand:// etc... but its chatcmd://

    This will be fun

  8. #8
    Oh dear, he has this plan to take over the world by making people say silly things =)

  9. #9

    ummm there is missing something

    what do u save the script under "name " ?
    and how to recall it in game ..

    <a href="text://Hey look i can script! Yey for me!">Clicky Clicky!</a> that i save in notepad as yay.txt

    but typing /v yay.txt dont make it come out ...

    what am i doing wrong ?
    OmG "its the migthy vomit" RK2 omni
    .-= Ive Got Your Back=-.
    220 engi /215 doc / 180 enf soli / 141 shade / 168 mp / 126 doc / 125 agent / 59 fixer / 187 fixer /130 sol / 155 ma / 90 NT/ 188crat /156 trader /150 keeper/ 150 enf trox /+some more i forgot


    http://www.bash.org/?top

  10. #10
    you won't be typing /v yay.txt


    type /yay.txt after switching to the vicinity channel if that is where you want it posted

  11. #11

    Cool My Tier one Info looks like this in our bot.

    It is in swedish though but you may translate it if you want to use it. To get it in the bot i used !learn > t1 as a command. And to look at it we type !info t1.
    (no colours added since i am totally colourblind)

    För First Tier Armor behöver du: <br>6 stycken <a href='itemref://239835/239835/1'>Consanguineal Embryo of Annwn<br><a href='chatcmd://'><img src=rdb://144701></a></a><br>, 6 stycken
    <a href='itemref://223445/223445/1'>Canister of Pure Liquid Notum<br><a href='chatcmd://'><img src=rdb://100305></a></a>, <br><br>18 stycken av din yrkesgrupps Visions samt 6 stycken av ditt yrkes Novictum.<br><br><a href='itemref://239466/239466/1'>Visions of The Reposeful<br><a href='chatcmd://'><img src=rdb://151032></a></a> <br><br>- Aventurer - Doctor - Fixer - Meta-physisist - Trader<br><br><a href='itemref://239468/239468/1'>Visions of the Unshakable<br><a href='chatcmd://'><img src=rdb://151033></a></a><br><br> - Enforcer - Engineer - Keeper - Martial Artist - Shade<br><br><a href='itemref://239467/239467/1'>Visions of The Tempestuous<br><a href='chatcmd://'><img src=rdb://151031></a></a><br><br> - Agent - Bureaucrat - Nano-technician - Soldier<br><br><a href='itemref://218472/218472/1'>Novictum:<br><a href='chatcmd://'><img src=rdb://20407></a></a><br><br><br>Adventurer Novictum Mud<br><br>Agent Transparent Novictum Gas<br><br>Bureaucrat Radient Novictum Gas<br><br>Doctor Pure Novictum Liquid<br><br>Enforcer Compact Novictum Stone<br><br>Engineer Crystalized Novictum<br><br>Fixer Mist of Novictum<br><br>Keeper Spongy Novictum<br><br>Martial Artist Novictum Sand<br><br>Meta-Physicist Plastic Novictum<br><br>Nano-Technician Caustic Novictum<br><br>Shade Carbonized Novictum Stone<br><br>Soldier Porous Novictum Stone<br><br>Trader Fragmented Novictum Crystals


    <a href='chatcmd://' Is there for later editing. The request was from my org that we should link it to a Novictum/Vision/Embryo bank.
    Last edited by Baldyr; Dec 9th, 2005 at 15:14:28. Reason: Unnessesary codes? <a href='chatcmd://'
    [louisecyphre] Don't mistake me, most of the people are nice in this game, whatever the level, but a moron is a moron, from TL1 to TL7.

  12. #12

    Tradeskill Script

    Hi all

    just trying a script, trying to get it working, will try tonight;

    /skills1-50
    Code:
    /g "Clan Shopping 1-50" 
    <a href="text://<Font size=20 color=#2525FF>Tradeskiller now available<p>
    Skills:<P>
    <Font size=14 color=#FF2525>Mech. Engi=350<br>
    Elec. Engi=350<br>
    Quantum FT=75<br>
    Weapon Smt=25<br>
    Pharma Tech=90<br>
    Nano Program=120<br>
    Comp. Lit=260<br>
    Psychology=25<br>
    Chemistry=250<br>
    Break & Entry=75<p>
    <font color=#2525FF size=12>Unless otherwise specified, skills<br>
    are with org HQ buff only.<br>Subtract 100 for on-the spot processing<p>
    <font color=#FFFFFF size=18>Prices as per<br>
    <a href="chatcmd:///start http://forums.anarchy-online.com/showthread.php?t=443225>Pricing for tradeskills v3.0</a><p>
    <a href="chatcmd:///tell junket">/tell Junket</a><P>
    <font color=#2525FF size=20>Examples of what i can make:<P>
    <a href="itemref://162431/162432/80"><img src="rdb://162421"><br>Carbonum Armour up to Level 80</a><br>
    Price: 3x QL of the suit (Full or partial Set)<p>
    <a href="itemref://10321/10322/125><img src="rdb://195261"><br>Implants to QL 125</a><p>
    <a href="chatcmd:///tell junket">/tell Junket</a><P>
    "Tradeskills Available"</a><-- Click the Link
    Comments? Sugegstions?
    I was going to try to make a set of these scripts, one for each shopping channel, one for shout and one for org chat.

    is there a way to set arguments in a script using %1, %2, %3 etc?

    e.g. if i remove the /g "clan shopping 1-50" from the start, will it be said in the current channel? i.e. call it "skillstext" and run an "over script"

    /skillsspam
    Code:
    /g "clan shopping 1-50" /skillstext
    /g "clan shopping 50-100" /skillstext
    /o /skillstext
    /s /skillstext
    /skillsshop
    Code:
    /g "clan shopping 1-50" /skillstext
    /g "clan shopping 50-100" /skillstext
    /skillstext
    Code:
    <a href="text://<Font size=20 color=#2525FF>Tradeskiller now available<p>
    Skills:<P>
    <Font size=14 color=#FF2525>Mech. Engi=350<br>
    Elec. Engi=350<br>
    Quantum FT=75<br>
    Weapon Smt=25<br>
    Pharma Tech=90<br>
    Nano Program=120<br>
    Comp. Lit=260<br>
    Psychology=25<br>
    Chemistry=250<br>
    Break & Entry=75<p>
    <font color=#2525FF size=12>Unless otherwise specified, skills<br>
    are with org HQ buff only.<br>Subtract 100 for on-the spot processing<p>
    <font color=#FFFFFF size=18>Prices as per<br>
    <a href="chatcmd:///start http://forums.anarchy-online.com/showthread.php?t=443225>Pricing for tradeskills v3.0</a><p>
    <a href="chatcmd:///tell junket">/tell Junket</a><P>
    <font color=#2525FF size=20>Examples of what i can make:<P>
    <a href="itemref://162431/162432/80"><img src="rdb://162421"><br>Carbonum Armour up to Level 80</a><br>
    Price: 3x QL of the suit (Full or partial Set)<p>
    <a href="itemref://10321/10322/125><img src="rdb://195261"><br>Implants to QL 125</a><br>
    Ql 1-50 25k per bag<br>
    Ql 50-100 50k per bag<br>
    Ql 100-125 75k per bag<p>
    <a href="chatcmd:///tell junket">/tell Junket</a><P>
    "Tradeskills Available"</a><-- Click the Link
    Cheers

    Junket on RK2

  13. #13
    if you don't have the /g it will be said in the currently selected channel, but you could use /ch "channel name" to change the channel first.
    While we're on the topic of textwindows, http://www.hackersquest.org/phpBB2/viewtopic.php?t=6199 holds some info not included here.
    Formerly Vhab.
    Once upon a time ruled a server. And then sold out. Sorry.

  14. #14
    Somewhat confused here, is this coding exactly as HTML coding? you just need <a href="text:// before you start writing HTML stuff? and end with a </a> instead of <body></body>?
    Last edited by Thejoy; Apr 28th, 2006 at 00:29:27.
    Gender 'Blackdog' Bender 220/26 Soldier
    Den 'Beskyddaren' Utvalde
    220/18 Keeper
    Kane 'Blacrat' Lives 218/15 Bureaucrat
    Bleeding 'Rofflewaffle' Screaming 180/13 Shade
    Den 'Tempelherren' Trofaste 165/19Fixer


    My AO vids:
    Boom! Aimedshot!
    Still Online!

  15. #15
    Similar but not exactly the same as HTML.

  16. #16

    Final Product

    Hi all. I ended up using the following as my ad;

    note that you gotta have it all on one line for it to work; I've seperated it so you can understand it a bit.

    Code:
    <a href="text://<font color=#2525FF><
    u><img src='rdb://33167'>Tradeskills now for hire!!!<img src='rdb://255463'></u>
    <p><a href='chatcmd:///tell Junket'>/Tell Junket</a><p>
    <br><Font color=#FF2525>Skills:<P>
    <font color=#25FF25><center>Mech. Engi = 364<br>
    Elec. Engi = 361<br>
    Nano Programming = 175<br>
    Comp. Lit. = 359<br>
    Chemistry = 255<p></div>
    <Font color=#FF2525>Products I can Make<p>
    <font color=#777777>(Prices as per <a href='chatcmd:///start http://forums.anarchy-online.com/showthread.php?t=443225'>Pricing for tradeskills v3.0</a>)<p>
    <font color=#AAAAAA><a href='itemref://162431/162432/80'><img src='rdb://162421'><br>Carbonum Armour up to Level 80</a><br>
    Price: 3x QL of the suit (Full or partial Set)<p>
    <a href='itemref://10321/10321/1'><img src='rdb://195261'><br>Implants to QL 50</a>
    <p>Full Set: 1k per QL (My price)<p><br>
    <font color=#777777>All skills are at Org Hq. Please -100 for on-the-spot skills<p><br>
    <font color=#000000>Designed By Junket RK2</font>
    <a href='chatcmd:///tell Junket'>/Tell Junket</a>
    ">Tradeskills For Hire</a>
    Here's an image of it:
    http://img132.imageshack.us/my.php?i...eskills5rl.jpg

    Some things I've learnt:
    - The entire <TAG> has to be on one line to work (no "returns")
    - You can't use a script to type a script function into a channel, like:
    Code:
    /g "Clan shopping 1-50" /skills.txt
    /v /skills.txt
    /o /skills.txt
    outputs as
    Junket: /skills.txt
    [Leet-Bloc] Junket: /skills.txt
    [Clan shopping 1-50] Junket: /skills.txt
    (this is embarassing)

    Instead, you have to use:
    Code:
    /g "Clan shopping 1-50" <a href="xxxx"></a>
    /v <a href="xxxx"></a>
    /o <a href="xxxx"></a>
    - Image Tags are not just the number of the item; many items share one image, so use the "properties" of the image in auno or aomainframe to find out
    - Implants are hard to reference
    - LowID/HighID/QL refers to the two items that are the same "item" but at two ends of the spectrum; the QL "interpolates" between them.
    -The maximum length of a script appears to be one full "line" in windows notepad if word wrap is off (ie. it wraps anyway) and any longer than this and the client will crash

    Feel free to use the template above for your own - but please quote me as the designer

    Cheers

  17. #17
    what you can do however is:
    Code:
    /ch "Shopping \o/ 1-50"
    /displaySkills
    /ch "Shopping \o/ 50-100"
    /displaySkills
    /ch "Vicinity"
    /displaySkills
    and displaySkills script would be something like
    Code:
    <a href="...">click me!!! please click!! FREE EPEEN!</a>
    Last edited by Vhaxx; Apr 30th, 2006 at 08:28:04.
    Formerly Vhab.
    Once upon a time ruled a server. And then sold out. Sorry.

  18. #18
    I appear to be having a problem with "itemref://" for example:

    <a href='itemref://247573/247573/286'>

    Should be a QL286 Kyr'Ozch Axe - Type 240

    However, when you click the link, it gives the info for a QL1 instead of QL286 (although it still displays the QL as QL286 in the item window).

    Beamerboy

    [Edit] Its ok someone helped me in game. I needed to make highid 1 higher than lowid
    Last edited by Traceroute; May 5th, 2006 at 06:24:46.

  19. #19
    It's because you're only using 1 ID.
    The 2 ID's you passed are both ql 1 so doing a calculation between those 2 leaves the ql 1 stats. find the matching high ID instead and use that.

    I looked up the item on auno:
    http://auno.org/ao/db.php?id=254693&ql=286

    254693 would be the lowID.
    all we need now is the high ID,

    when looking at that page we notice:
    286 (interpolated between QL 200 and QL 299)
    now, when looking at the links, QL 200 points at the lowID and ql 299 at the high ID.
    put these 2 together and add the QL and you're all done.

    [Edit] making the highid 1 higher doesn't always work. also you seemed to have the wrong item (the one you had isn't ingame, it's an error in the database, there's an entry that's almost exactly the same that is the correct one)
    Last edited by Vhaxx; May 5th, 2006 at 07:46:28.
    Formerly Vhab.
    Once upon a time ruled a server. And then sold out. Sorry.

  20. #20

    Unhappy hey!

    hey i have a question. what is the code for items? and where is the # or id site?

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •