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
events karma gain
Author Message
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #1
events karma gain
morning
well, i need to create an event for when a player uses an item, he loses 2000 karma to get criminal.
only im not reminded of the command to execute this action

i think is this
Quote:[EVENTS e_ganha_status]
ACT.KARMA -= 2000
return 1

only it is not working
thanks in advance
02-26-2018 12:48 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
azmanomer
Journeyman
*

Posts: 139
Likes Given: 4
Likes Received: 18 in 16 posts
Joined: Nov 2013
Reputation: 1



Post: #2
RE: events karma gain
on @itemdclick
karma -=2000

if u add this event to player u need to check item baseid if its gonna be called on item then

on @dclick
src.karma -=2000

check out trigger page at wiki: https://wiki.spherecommunity.net/index.p...y:Triggers
02-26-2018 01:11 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes azmanomer's post
darksun84
Sir Spamalot
****

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



Post: #3
RE: events karma gain
02-26-2018 01:11 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes darksun84's post
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #4
RE: events karma gain
thanks all Big Grin
02-26-2018 01:50 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #5
RE: events karma gain
i tried to leave the players criminal when they entered the arena, and remove the criminal when they leave the arena so they can get the loot, it worked, but the karma modifies the original status of the player and does not return to what it was before ...
would somehow have me create a kind of memory so that when the player leaves the arena he would still have the same karma / kill / death as when he entered?
02-26-2018 03:28 AM
Visit this user's website 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: #6
RE: events karma gain
you can save the karma/kills/deaths in some tags and when the player exit the arena, restore the values by using the tags
02-26-2018 03:39 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes darksun84's post
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #7
RE: events karma gain
and how could i do that? would you have any tutorials?
i have no idea how to get started :c
02-26-2018 03:54 AM
Visit this user's website 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: events karma gain
02-26-2018 05:05 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes darksun84's post
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #9
RE: events karma gain
(02-26-2018 05:05 AM)darksun84 Wrote:  http://wiki.spherecommunity.net/index.ph...=Chapter_5

is correct?
Quote:ON=@DCLICK
SRC.TAG.KKILLS=<SRC.KILLS>
SRC.TAG.KDEATHS=<SRC.DEATHS>
SRC.TAG.KKARMA=<SRC.KARMA>

ON=@timer
SRC.KILLS=<SRC.TAG.KKILLS>
SRC.DEATHS=<SRC.TAG.KDEATHS>
SRC.KARMA=<SRC.TAG.KKARMA>
02-26-2018 05:50 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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