start stone help - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: start stone help (/Thread-start-stone-help) |
start stone help - dabritmusic - 01-19-2014 08:56 PM hello a bit rusty with sphere. ran into some problems with a starting stone i was creating. if anyone has any solutions would be greatly appreciated. thanks. [ITEMDEF i_start_stone] DEFNAME=i_start_stone NAME=Start Stone ID=i_grave_stone ON=@CREATE COLOR=00008 CATEGORY=Custom SUBSECTION=Stones DESCRIPTION=Start Stone ON=@CLICK Message= @0481 <name> RETURN 1 ENDIF ON=@DCLICK IF (<DISTANCE> >= 3) SRC.SYSMESSAGE= @0481 You can't reach that. RETURN 1 ENDIF SRC.DIALOG=d_start_stone RETURN 1 ENDIF [DIALOG d_start_stone] PAGE 0 resizepic 20 20 5054 300 280 resizepic 30 30 5120 280 260 text 85 40 200 100 1 text 40 70 100 2 text 40 90 100 3 text 40 110 100 4 text 40 150 100 5 text 40 170 100 6 text 40 190 100 7 text 40 210 100 8 text 40 230 100 9 button 270 260 2103 2104 1 0 1 [DIALOG d_start_stone TEXT] Reborn Legends Start Stone Welcome <NAME> To Reborn Legends! We Hope You ENjoy Your Visit! If You Have Any Questions, Please Contact Us At, Admin@RebornLegends.com Click The Button To Proceed [DIALOG d_start_stone BUTTON] ON=1 SRC.SYSMESSAGE= @079 Welcome to Reborn Legends! Checkout .RULES to learn about the server and .COMMANDS to see player commands. SRC.ALLSKILLS=300 SRC.STR=100 SRC.DEX=100 SRC.INT=100 SRC.ACT.TAG.P=1423,1697 SRC.EVENTS E_NEWBIE [EOF] RE: start stone help - XuN - 01-19-2014 09:06 PM You may start telling us what are the problems you have, for now i can tell you this: First: ON=@DCLICK IF (<DISTANCE> >= 3) <--- this must be <src.distance> as you are trying to compare the distance against the player (src), otherwise it will check for the distance from itself (wich is obviously 0) Second: You are using text x y color ID and a TEXT block, it can be shortened using Dtext x y color Your text, in example: dtext 85 40 200 100 Reborn Legends Start Stone Third: You don't need to use SRC in the BUTTON section as you are already calling the dialog on SRC in the @DClick. RE: start stone help - Mordaunt - 01-19-2014 11:04 PM @Create should appear AFTER Catergory, Subsection & Description. You do not need the Defname line given your Itemdef is a string rather than a hex value. Too many endifs in the @Dclick block An endif in the @Click block with no If to open such an arguement RE: start stone help - dabritmusic - 01-21-2014 01:41 AM thanks a lot. works great. |