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
Fame Karma Kills (FKK) Stones
Author Message
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #1
Fame Karma Kills (FKK) Stones
Time to share some scripts we use frequently on TUP. Some may be in need of updating.

These stones are used when we run events, so that the event does not make permanent changes to a players Fame, Karma or Kills.

Use: Change the location that the Entry and Exit stones should take players to (Set to our 'team picking' room). Then place in front of players to double click to enter your events.

If a player leaves without using the Exit stone, they may find the next time they enter an event it wont store their FKK. Simply ask them to use the Exit stone first.

Code:
// Stones for storing FKK while in an Event or something. Use exit stone to restore.
[itemdef i_famekarma_entry_stone]
Name= Fame, Karma and Kills Entry Stone
ID=i_guildstone
Type=T_Normal

On=@Create
   color=007a3
   morep=6038,406

on=@Dclick
   src.tag.killsbackup=<src.kills>
   src.tag.karmabackup=<src.karma>
   src.tag.famebackup=<src.fame>
   src.tag.repbackup=<SRC.TAG.REP.ALIGNMENT>
   src.tag.killtimerbackup=<SRC.FINDID.b_kill_decayer.timer>
   src.tag.statsstored = 1
   say Fame, Karma & Kills Stored
   src.go <morep>
   return 1

//********************************************************************//
[itemdef i_famekarma_exit_stone]
Name= Fame, Karma and Kills Exit Stone
ID=i_guildstone
Type=T_Normal

On=@Create
   color=00787
   morep=4310,1007
  
on=@Dclick
   If (0<src.tag.statsstored> == 01)
      src.kills=<src.tag.killsbackup>
      src.karma=<src.tag.karmabackup>
      src.fame=<src.tag.famebackup>
      src.tag.rep.alignment=<src.tag.repbackup>
      SRC.FLAGS = <SRC.FLAGS> & ~statf_criminal
      SRC.FINDID.b_kill_decayer.timer = <src.tag.killtimerbackup>

      src.tag.karmabackup =
      src.tag.famebackup =
      src.tag.killsbackup =
      src.tag.repbackup=
      src.tag.statsstored =
      src.tag.killtimerbackup =
    
      src.for_memory f_fkk_peace
    
      say Karma & Kills Restored
      src.go <morep>
   else
      SRC.FOR_MEMORY f_fkk_peace      
      SRC.FLAGS = <SRC.FLAGS> & ~statf_criminal
      Say You Have No Stats Stored
      src.go <morep>
   ENDIF
   Return 1

[FUNCTION f_fkk_peace]
IF (<UID.<args>.timer> >= 1)
SERV.LOG Exiting PvP Via Stone. Removed Memory Object: <UID.<args>.name>
UID.<args>.REMOVE
ENDIF

ULTIMA ONE
The modern, sphere powered Ultima Online server
05-16-2013 12:54 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: 1 Guest(s)