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
maurizio1961
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2015
Reputation: 0



Post: #1
You can give me some advice
I created this script that according to the wiki but also in my opinion it should be easy, although sphere does not make any mistakes, there is a script problem not a sign of life is virtually dead the gate not by signs of life.
And yet it seems to me that it is in order, can you know it happens to him?





Code:
[Itemdef i_gate_cimitero]
[/b]
Defname=i_gate_cimitero
ID=i_moongate_blue
NAME=Passaggio per il cimitero
Type =183

CATEGORY=gate di controllo
SUBSECTION= funzioni varie
DESCRIPTION= controlla chi gioca al cimitero
ON=@STEP
IF (<SRC.KILL>=>1)
ELIF (<SRC.SWORDSMANSHIP>>100)
ELIF (<SRC.MAGERY>>100)
ELIF (<SRC.PARRYNG>>100)
ELIF (<SRC.TACTICS>>100)
ELIF (<SRC.ARCHERY>>100)
ELIF (<SRC.STR>>100)
ELIF (<SRC.INT>>100)
ELIF (<SRC.DEX>>100)
ELIF (<SRC.MACEFIGHTING>>100)
SRC.MESSAGE @00110 <SRC.NAME> Non � il posto per te, tu devi trovarti un gruppo e andare a caccia da qualche altra parte !


ELSE SRC.GO 1358.1482.10
ENDIF
RETURN 1
(This post was last modified: 09-27-2017 08:10 AM by maurizio1961.)
09-26-2017 11:03 AM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #2
RE: You can give me some advice
What are you trying to accomplish here? If the player that steps on the portal has 1 or more kills, with all skills GM that you listed you want them to not be able to teleport? You're script is missing a bunch of stuff, I'd suggest reading over the wiki again if you have already done so.

If you can try to explain what you want a little bit better we can help you better
09-26-2017 11:47 AM
Find all posts by this user Like Post Quote this message in a reply
maurizio1961
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2015
Reputation: 0



Post: #3
RE: You can give me some advice
Sorry but I did not come to find someone to make four whims, and then there is a forum where when you have any doubts or server issues just to ask for, your answer does not understand it sincerely and then I apologize, I do not want a judgment on script I want a case help ever
09-26-2017 12:11 PM
Find all posts by this user Like Post Quote this message in a reply
Leonidas
Master
**

Posts: 277
Likes Given: 3
Likes Received: 13 in 12 posts
Joined: May 2013
Reputation: 1



Post: #4
RE: You can give me some advice
Yes I am trying to help, I do not understand what you are trying to accomplish with your script.
09-26-2017 12:14 PM
Find all posts by this user Like Post Quote this message in a reply
maurizio1961
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2015
Reputation: 0



Post: #5
RE: You can give me some advice
I thank you but after two hours on the sphere it does not work yet this and the c ++ syntax for example would go, but I would like the sphere to work fine because it is much simpler, and it does not have to have a computer laureain to run it.
09-26-2017 12:29 PM
Find all posts by this user Like Post Quote this message in a reply
Soulless
Super Moderator
****

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

Ye Olde Sphere

Post: #6
RE: You can give me some advice
What do you want this script to do? there's a lot of "elseif" in there that are not being used. at the end, both scenarios end up at 1358.1482,10
09-26-2017 02:52 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
maurizio1961
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2015
Reputation: 0



Post: #7
RE: You can give me some advice
I wanted to make a step for the Brittany cemetery, with all these conditions, so that new players would be protected by people with bad intentions;I changed the script but asleep I do not work the gate.
I wonder why an emulator that does not work, still exists!
(This post was last modified: 09-27-2017 06:45 AM by maurizio1961.)
09-27-2017 02:58 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: You can give me some advice
The emulator works fine, your IF conditions are completelly wrong and doesn't make sense.
09-27-2017 07:01 AM
Find all posts by this user Like Post Quote this message in a reply
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
maurizio1961
Apprentice
*

Posts: 6
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Feb 2015
Reputation: 0



Post: #10
RE: You can give me some advice
The wiki sphere teaches you the basics, but it does not explain to you, if you get an error, how do you have to adjust yourself.
For example, see Spherewiki does not talk about it, so I know I should be able to use a good deal of C operators too. because I do not talk about it, but now I understand this from your example that you have shown me now.
You can not figure out all that server programming scripts in 10 pages, and a bit of a perception
(This post was last modified: 09-27-2017 08:23 AM by maurizio1961.)
09-27-2017 08:06 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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