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:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Levelup function
Author Message
Snaigel
Journeyman
*

Posts: 75
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0



Post: #1
Levelup function
Hi, I have this level up function on my leveling script, but I dont know how to make it to place an item on the backpack of the player when they level up, tryied with serv.newitem but doesn't work[/align]

Quote:[FUNCTION f_levelup]
f_show_xp_title
IF <TAG0.EXP> >= <TAG0.LEVELUP>
SYSMESSAGE @030 ¡¡Has subido de nivel!!
TAG0.EXP=0
TAG0.LEVELUP += 1000
TAG0.MYLEVEL += 1
//effect
serv.NEWITEM=i_fx_sparkle
new.P=<P>
new.TYPE=t_normal
new.TIMER=3
new.ATTR=attr_static|attr_move_never|attr_decay
SOUND=284//1462
ELSE
//SYSMESSAGE @030 Necesitas mas experiencia para subir de nivel.
ENDIF
02-03-2017 06:13 AM
Find all posts by this user Like Post Quote this message in a reply
Catalan_mistral
Journeyman
*

Posts: 54
Likes Given: 2
Likes Received: 6 in 5 posts
Joined: Jan 2017
Reputation: 0



Post: #2
RE: Levelup function
Don't swear if i'm wrong but have you tried new.bounce?

The One and Only......
(This post was last modified: 02-03-2017 06:54 AM by Catalan_mistral.)
02-03-2017 06:53 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: #3
RE: Levelup function
src.newitem=i_blah
new.bounce
02-03-2017 06:59 AM
Find all posts by this user Like Post Quote this message in a reply
Snaigel
Journeyman
*

Posts: 75
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Jan 2017
Reputation: 0



Post: #4
RE: Levelup function
Rofl I forgot that command, thanks
02-03-2017 07:28 AM
Find all posts by this user Like Post Quote this message in a reply
xwerswoodx
Journeyman
*

Posts: 86
Likes Given: 4
Likes Received: 7 in 4 posts
Joined: Jun 2012
Reputation: 0

UoMMO

Post: #5
RE: Levelup function
SERV.NEWITEM i_item_id,amount,<SOURCE>

Example:
SERV.NEWITEM i_fx_sparkle,1,<UID>
02-03-2017 10:19 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)