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
help with a script
Author Message
kevin465
Journeyman
*

Posts: 67
Likes Given: 1
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 0

UO Reborn

Post: #1
help with a script
Ok i think i need some help for complete my script...because when i link the robe with a player...the player cant equip the robe...i think i need an admin function for set an account donater... like

.donater (account name) ....

[itemdef i_donate_robe]
id = i_robe
name = donater robe

on=@create
hitpoints = 1000
attr = 04

on=@click
message [Owner: <link.name>]

on=@equiptest
if !( strmatch("<link.account>","<src.account>") ) || ( <src.account.donater> == 0 )
src.sysmessage You have not donated for this robe!
serv.log <src.name> (<src.account.name>) tried using a death shroud of <link.name> (<link.account.name>)
return 1
endif

on=@damage
return 1
02-17-2014 11:32 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: help with a script
what is src.account.donater? an account tag? if so it should be src.account.tag0.donater

[Image: 2nis46r.jpg]
02-18-2014 02:54 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
kevin465
Journeyman
*

Posts: 67
Likes Given: 1
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 0

UO Reborn

Post: #3
help with a script
Yes i wanna make a donator section but link a robe with an donator account for acces a gate ...


Envoyé de mon iPod touch à l'aide de Tapatalk
02-18-2014 03:23 AM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #4
RE: help with a script
here is some VIP items I have on my shard.

Code:
//                             \\
//         By Diabolic      \\
//                             \\

[ITEMDEF i_mantle_vip]
ID=i_deathshroud
NAME=Vip Ancient Robe
TYPE=T_CLOTHING

ON=@CREATE
ATTR=attr_newbie
COLOR=0455
HITPOINTS=99999

ON=@EQUIP
IF (<LINK> == 04fffffff)
    LINK = <SRC.UID>
ENDIF

IF (<LINK> == <SRC.UID>)
    Name=<SRC.NAME>'s Vip Ancient Robe
    SRC.MODSTR += 15
    SRC.MODINT += 15
    SRC.MODDEX += 15
    SRC.MAXHITS += 15
    SRC.MAXMANA += 15
    SRC.MAXSTAM += 15
    SRC.TAG.VIP=1
    SRC.SOUND=snd_SPELL_BLESS
ELSE
    IF (<LINK.FINDLAYER(21).UID> != 0)
        SRC.SYSMESSAGE These Vip Ancient Robe are not its.
        CONT = <LINK.FINDLAYER(21).UID>
    ELSE
        SRC.SYSMESSAGE The item was deleted.
        REMOVE
    ENDIF
ENDIF
RETURN 0


ON=@UNEQUIP
IF (<LINK> == <SRC.UID>)
    SRC.MODSTR -= 15
    SRC.MODINT -= 15
    SRC.MODDEX -= 15
    SRC.MAXHITS -= 15
    SRC.MAXMANA -= 15
    SRC.MAXSTAM -= 15
    SRC.SOUND=snd_SPELL_BLESS
    
    IF (<SRC.HITS> > 100)
        SRC.HITS=100    
    ENDIF
    
    IF (<SRC.MANA> > 100)
        SRC.MANA=100    
    ENDIF
    
    IF (<SRC.STAM> > 100)
        SRC.STAM=100    
    ENDIF
    
ENDIF
RETURN 0

/////////////////////////////////////////

[ITEMDEF i_boots_vip]
ID=i_boots_calf
NAME=Vip Boots
TYPE=T_CLOTHING

ON=@CREATE
ATTR=attr_newbie
COLOR=0455
HITPOINTS=99999

ON=@EQUIP
IF (<LINK> == 04fffffff)
    LINK = <SRC.UID>
ENDIF

IF (<LINK> == <SRC.UID>)
    Name=<SRC.NAME>'s Vip Boots
ELSE
    IF (<LINK.FINDLAYER(21).UID> != 0)
        SRC.SYSMESSAGE These Vip Boots are not its.
        CONT = <LINK.FINDLAYER(21).UID>
    ELSE
        SRC.SYSMESSAGE The item was deleted.
        REMOVE
    ENDIF
ENDIF
RETURN 0

/////////////////////////////////////////

[ITEMDEF i_vip_half_apron]
ID=i_apron_half
NAME=Vip Half Apron
TYPE=T_CLOTHING

ON=@CREATE
ATTR=attr_newbie
COLOR=0455
HITPOINTS=99999

ON=@EQUIP
IF (<LINK> == 04fffffff)
    LINK = <SRC.UID>
ENDIF

IF (<LINK> == <SRC.UID>)
    Name=<SRC.NAME>'s Vip Half Apron
ELSE
    IF (<LINK.FINDLAYER(21).UID> != 0)
        SRC.SYSMESSAGE These Vip Half Apron are not its.
        CONT = <LINK.FINDLAYER(21).UID>
    ELSE
        SRC.SYSMESSAGE The item was deleted.
        REMOVE
    ENDIF
ENDIF
RETURN 0

/////////////////////////////////////////

[ITEMDEF i_los_coin]
NAME=Land Of Sprit Coin
ID=i_gold

ON=@CREATE
COLOR=079a

[eof]
02-18-2014 06:12 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)