![]() |
Travel Mage instead of a Travel Stone - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Requests (/Forum-Script-Requests) +--- Thread: Travel Mage instead of a Travel Stone (/Thread-Travel-Mage-instead-of-a-Travel-Stone) |
Travel Mage instead of a Travel Stone - dunnetott - 02-18-2016 12:59 AM is it possible to make a npc that works like a stone but instead of getting a menu up when you click on it you instead say something like "I want to go to minoc" and he charges you like 100gold and sends you on your merry way. RE: Travel Mage instead of a Travel Stone - pointhz - 02-18-2016 05:16 AM [CHARDEF c_teleporter] NAME=Teleporter ID=C_MAN DAM=15,20 ARMOR=20 TSPEECH=teleporter ON=@Create TITLE=The teleporter NPC=brain_human COLOR=colors_skin STR={151 165} DEX={80 120} INT={151 165} DETECTION={90.0 100.0} FENCING={90.0 100.0} PARRYING={90.0 100.0} SWORDSMANSHIP={90.0 100.0} WRESTLING={90.0 100.0} MACEFIGHTING={90.0 100.0} MAGICRESISTANCE={90.0 100.0} TACTICS={90.0 100.0} ITEMNEWBIE=random_male_hair COLOR=colors_hair ITEMNEWBIE=random_facial_hair COLOR=match_hair ON=@NPCRestock ITEM=i_shirt_plain COLOR=colors_all ITEM=random_pants COLOR=colors_all ITEM=01710 COLOR=colors_all [SPEECH teleporter] ON=*hello* ON=*hi* Say Hello Adventurer! Say Would you like to travel? Say If yes, please say the name of the city you want to go to. ON=*minoc* IF ( <SRC.GOLD> >= 100 ) SAY Here you go. SRC.GO minoc Else SAY Sorry but you do not have enough money for that. ENDIF RE: Travel Mage instead of a Travel Stone - Khaos - 02-18-2016 08:23 AM Code: on=*hi* This can be setup for every town possible. The original response lacked a consumption of the gold needed. Also, return 1 *should* clear the player from the mage's memory and allow his attention to be sought out with other players without waiting on a delay. I also cannot point this out enough with programming. Try to do checks to fail the processing first. Because if you get too complicated with success coding, you would be putting a lot more strain on processing than needed. RE: Travel Mage instead of a Travel Stone - dunnetott - 02-18-2016 11:53 PM Thanks this works wonders and i can build on it ![]() |