Ultima One
Journeyman
Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6
Ultima One
|
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 |
|
|