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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
You can give me some advice
Author Message
Soulless
Super Moderator
****

Posts: 335
Likes Given: 29
Likes Received: 49 in 27 posts
Joined: Jun 2012
Reputation: 12

Ye Olde Sphere

Post: #9
RE: You can give me some advice
It's not the emulator it's your script, I would highly recommend the spherewiki to help out with examples and learning the basics.

Code:
ON=@STEP
IF (<SRC.KILL>=>1)  //kills not kill
ELIF (<SRC.SWORDSMANSHIP>>100) //does nothing after it checks
ELIF (<SRC.MAGERY>>100)//does nothing after it checks
ELIF (<SRC.PARRYNG>>100)//does nothing after it checks
ELIF (<SRC.TACTICS>>100)//does nothing after it checks
ELIF (<SRC.ARCHERY>>100)//does nothing after it checks
ELIF (<SRC.STR>>100)//does nothing after it checks
ELIF (<SRC.INT>>100)//does nothing after it checks
ELIF (<SRC.DEX>>100)//does nothing after it checks
ELIF (<SRC.MACEFIGHTING>>100)  //checks if macefighting is over 10.0 and sends the player to britain
SRC.MESSAGE @00110 <SRC.NAME> Non � il posto per te, tu devi trovarti un gruppo e andare a caccia da qualche altra parte !
SRC.GO BRITAIN
ENDIF
RETURN 1   //stops everything after it because it's not within an if condition


//nothing here matters because return 1 above isnt inside any kind of if statement
ELSE src.message @00110 <SRC.NAME> Scusa ma mi accerto che chi viene qua viene per crescere il suo personaggio, ma a non dare fastidio  //this should def be a error
SRC.GO 1358.1482,10
ENDIF
RETURN 0

something more like what you might want

Code:
ON=@STEP
IF (<SRC.KILLs>>=1)  &&  (<eval <SRC.SWORDSMANSHIP>+<SRC.MAGERY>+<SRC.PARRYNG>+<SRC.TACTICS>+<SRC.ARCHERY>+<SRC.MACEFIGHTING>> >= 6000) &&
(<eval <src.str>+<src.dex>+<src.int>> >= 300)
SRC.MESSAGE @00110 <SRC.NAME> Non � il posto per te, tu devi trovarti un gruppo e andare a caccia da qualche altra parte !
SRC.GO BRITAIN
else
src.message @00110 <SRC.NAME> Scusa ma mi accerto che chi viene qua viene per crescere il suo personaggio, ma a non dare fastidio
SRC.GO 1358.1482,10
ENDIF
return 1
(This post was last modified: 09-27-2017 07:23 AM by Soulless.)
09-27-2017 07:13 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
You can give me some advice - maurizio1961 - 09-26-2017, 11:03 AM
RE: You can give me some advice - Leonidas - 09-26-2017, 11:47 AM
RE: You can give me some advice - Leonidas - 09-26-2017, 12:14 PM
RE: You can give me some advice - Soulless - 09-26-2017, 02:52 PM
RE: You can give me some advice - Soulless - 09-27-2017 07:13 AM
RE: You can give me some advice - Leonidas - 09-28-2017, 09:35 AM

Forum Jump:


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