The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
start stone help
Author Message
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #1
start stone help
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]
01-19-2014 08:56 PM
Find all posts by this user Like Post Quote this message in a reply
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: start stone help
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.
01-19-2014 09:06 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: start stone help
@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

[Image: 2nis46r.jpg]
(This post was last modified: 01-19-2014 11:04 PM by Mordaunt.)
01-19-2014 11:04 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Mordaunt's post
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #4
RE: start stone help
thanks a lot. works great.
01-21-2014 01:41 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)