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
Skill Pots
Author Message
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #1
Skill Pots
Custom skill pots with colored tags. not a complex script, but things like this are time consuming Big Grin thanks to mordaunt and XUN and other for all the help in the past. thought i owed it to submit something... ill add some other things ive created soon. im working on an experience level system right now. instead of basing it from creatures stats ill just link it to a tag. so say when you kill a lvl 1 monster you gain 30-80 exp lvl 2 85-150 etc... and have restriction so if your 5 levels higher than the monster you gain no exp. i also created crafting experience i will incorporate into it. any suggestions of any cool percs for this system please speak up. ive been reading alot about sphere lately. and now im all out of ideas!!! Blush

Code:
- Author: Dabrit
- Script last updated: 02/28/2014
- Language: English

[ITEMDEF i_skill_pot_blacksmithing]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Blacksmithing +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.BLACKSMITHING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.BLACKSMITHING=<SRC.BLACKSMITHING>+1.0
remove
return 1

[ITEMDEF i_skill_pot_mining]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Mining +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.MINING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.Mining=<SRC.Mining>+1.0
remove
return 1

[ITEMDEF i_skill_pot_alchemy]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Alchemy +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.ALCHEMY>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.ALCHEMY=<SRC.ALCHEMY>+1.0
remove
return 1


[ITEMDEF i_skill_pot_anatomy]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Anatomy +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.ANATOMY>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.Anatomy=<SRC.Anatomy>+1.0
remove
return 1


[ITEMDEF i_skill_pot_taming]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Animal Taming +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.TAMING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.taming=<SRC.taming>+1.0
remove
return 1


[ITEMDEF i_skill_pot_animallore]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Animallore +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.ANIMALLORE>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.Animallore=<SRC.Animallore>+1.0
remove
return 1


[ITEMDEF i_skill_pot_archery]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Archery +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.ARCHERY>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.Archery=<SRC.Archery>+1.0
remove
return 1


[ITEMDEF i_skill_pot_armslore]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Armslore +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.ARMSLORE>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.Armslore=<SRC.Armslore>+1.0
remove
return 1


[ITEMDEF i_skill_pot_begging]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Begging +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.BEGGING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.begging=<SRC.begging>+1.0
remove
return 1


[ITEMDEF i_skill_pot_bowcraft]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Bowcraft +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.BOWCRAFT>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.bowcraft=<SRC.bowcraft>+1.0
remove
return 1


[ITEMDEF i_skill_pot_camping]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Camping +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.CAMPING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.camping=<SRC.camping>+1.0
remove
return 1


[ITEMDEF i_skill_pot_carpentry]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Carpentry +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.CARPENTRY>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.carpentry=<SRC.carpentry>+1.0
remove
return 1


[ITEMDEF i_skill_pot_CARTOGRAPHY]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Cartography +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.CARTOGRAPHY>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.CARTOGRAPHY=<SRC.CARTOGRAPHY>+1.0
remove
return 1

[ITEMDEF i_skill_pot_Cooking]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Cooking +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.COOKING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.cooking=<SRC.cooking>+1.0
remove
return 1

[ITEMDEF i_skill_pot_detectinghidden]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Detecting Hidden +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.DETECTINGHIDDEN>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.DETECTINGHIDDEN=<SRC.DETECTINGHIDDEN>+1.0
remove
return 1

[ITEMDEF i_skill_pot_enticement]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Enticement +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.ENTICEMENT>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.enticement=<SRC.enticement>+1.0
remove
return 1

[ITEMDEF i_skill_pot_EvaluatingIntel]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Evaluating Intel +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.EVALUATINGINTEL>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.EvaluatingIntel=<SRC.EvaluatingIntel>+1.0
remove
return 1

[ITEMDEF i_skill_pot_fishing]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Fishing +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.FISHING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.fishing=<SRC.fishing>+1.0
remove
return 1

[ITEMDEF i_skill_pot_forensics]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Forensics +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.FORENSICS>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.forensics=<SRC.forensics>+1.0
remove
return 1

[ITEMDEF i_skill_pot_healing]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Healing +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.HEALING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.healing=<SRC.healing>+1.0
remove
return 1

[ITEMDEF i_skill_pot_herding]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Herding +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.HERDING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.herding=<SRC.herding>+1.0
remove
return 1

[ITEMDEF i_skill_pot_hiding]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Hiding +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.HIDING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.hiding=<SRC.hiding>+1.0
remove
return 1

[ITEMDEF i_skill_pot_inscription]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Inscription +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.INSCRIPTION>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.inscription=<SRC.inscription>+1.0
remove
return 1

[ITEMDEF i_skill_pot_itemid]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Item Id +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.ITEMID>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.itemid=<SRC.itemid>+1.0
remove
return 1

[ITEMDEF i_skill_pot_lockpicking]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Lockpicking +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.LOCKPICKING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.lockpicking=<SRC.lockpicking>+1.0
remove
return 1

[ITEMDEF i_skill_pot_lumberjacking]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Lumberjacking +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.LUMBERJACKING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.lumberjacking=<SRC.lumberjacking>+1.0
remove
return 1

[ITEMDEF i_skill_pot_macefighting]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Macefighting +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.MACEFIGHTING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.macefighting=<SRC.macefighting>+1.0
remove
return 1

[ITEMDEF i_skill_pot_magery]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Magery +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.MAGERY>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.magery=<SRC.magery>+1.0
remove
return 1

[ITEMDEF i_skill_pot_magicresistance]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Magic Resistance +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.MAGICRESISTANCE>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.magicresistance=<SRC.magicresistance>+1.0
remove
return 1

[ITEMDEF i_skill_pot_meditation]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Meditation +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.MEDITATION>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.meditation=<SRC.meditation>+1.0
remove
return 1

[ITEMDEF i_skill_pot_musicianship]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Musicianship +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.MUSICIANSHIP>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.musicianship=<SRC.musicianship>+1.0
remove
return 1

[ITEMDEF i_skill_pot_parrying]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Parrying +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.PARRYING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.parrying=<SRC.parrying>+1.0
remove
return 1

[ITEMDEF i_skill_pot_peacemaking]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [peacemaking +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.PEACEMAKING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.peacemaking=<SRC.peacemaking>+1.0
remove
return 1

[ITEMDEF i_skill_pot_poisoning]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Poisoning +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.POISONING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.poisoning=<SRC.poisoning>+1.0
remove
return 1

[ITEMDEF i_skill_pot_provocation]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Provocation +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.PROVOCATION>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.provocation=<SRC.provocation>+1.0
remove
return 1

[ITEMDEF i_skill_pot_removetrap]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Remove Trap +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.REMOVETRAP>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.removetrap=<SRC.removetrap>+1.0
remove
return 1

[ITEMDEF i_skill_pot_snooping]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Snooping +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.SNOOPING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.snooping=<SRC.snooping>+1.0
remove
return 1

[ITEMDEF i_skill_pot_spiritspeak]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Spirit Speak +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.SPIRITSPEAK>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.spiritspeak=<SRC.spiritspeak>+1.0
remove
return 1

[ITEMDEF i_skill_pot_stealing]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Stealing +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.STEALING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.stealing=<SRC.stealing>+1.0
remove
return 1

[ITEMDEF i_skill_pot_stealth]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Stealth +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.STEALTH>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.stealth=<SRC.stealth>+1.0
remove
return 1

[ITEMDEF i_skill_pot_swordsmanship]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Swordsmanship +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.SWORDSMANSHIP>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.swordsmanship=<SRC.swordsmanship>+1.0
remove
return 1

[ITEMDEF i_skill_pot_wrestling]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Wrestling +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.WRESTLING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.wrestling=<SRC.wrestling>+1.0
remove
return 1

[ITEMDEF i_skill_pot_veterinary]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Veterinery +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.VETERINERY>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.veterinary=<SRC.veterinary>+1.0
remove
return 1

[ITEMDEF i_skill_pot_tactics]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Tactics +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.TACTICS>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.tactics=<SRC.tactics>+1.0
remove
return 1

[ITEMDEF i_skill_pot_tailoring]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Tailoring +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.TAILORING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.tailoring=<SRC.tailoring>+1.0
remove
return 1

[ITEMDEF i_skill_pot_tasteid]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Taste Id +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.TASTEID>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.tasteid=<SRC.tasteid>+1.0
remove
return 1

[ITEMDEF i_skill_pot_tinkering]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Tinkering +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.TINKERING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.tinkering=<SRC.tinkering>+1.0
remove
return 1

[ITEMDEF i_skill_pot_tracking]
DEFNAME=i_skill_pot
ID=I_bottle
Name=Skill Pot

On=@create
Color=02

ON=@CLICK
MESSAGE @0487 [Tracking +1]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
IF (<SRC.TRACKING>> >= 100.0)
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
return 1
else
SRC.EMOTE feel a bit wiser
SRC.tracking=<SRC.tracking>+1.0
remove
return 1

[EOF]
(This post was last modified: 03-01-2014 09:10 AM by dabritmusic.)
03-01-2014 05:48 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 2 users Like dabritmusic's post
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Skill Pots
Thank you for sharing, each piece of code shared is a gain to the community Smile

BTW, try to use [ code] and [ /code] when adding long texts.
03-01-2014 06:36 AM
Find all posts by this user Like Post Quote this message in a reply
dabritmusic
Journeyman
*

Posts: 50
Likes Given: 8
Likes Received: 2 in 1 posts
Joined: Nov 2013
Reputation: 0



Post: #3
RE: Skill Pots
(03-01-2014 06:36 AM)XuN Wrote:  Thank you for sharing, each piece of code shared is a gain to the community Smile

BTW, try to use [ code] and [ /code] when adding long texts.

ok i will. Tongue
03-01-2014 07:11 AM
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: #4
RE: Skill Pots
But you didn't... you can add them in an edit.
Done it now anyway

[Image: 2nis46r.jpg]
03-01-2014 07:42 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Runcuks
Journeyman
*

Posts: 179
Likes Given: 5
Likes Received: 3 in 3 posts
Joined: Nov 2012
Reputation: 0



Post: #5
RE: Skill Pots
Just a little bug if player have 99.9 skill opening pot he will have 100.9
03-01-2014 10:11 PM
Find all posts by this user Like Post Quote this message in a reply
Soulless
Super Moderator
****

Posts: 335
Likes Given: 29
Likes Received: 49 in 27 posts
Joined: Jun 2012
Reputation: 12

Ye Olde Sphere

Post: #6
RE: Skill Pots
just an example for something you could do with this instead of doing each one by one

Code:
[ITEMDEF i_skill_pot_1]
ID=I_bottle
Name=Skill Pot

On=@create
tag0.skill=<eval {1 52}>
Color=02

ON=@CLICK
MESSAGE @0487 [<serv.skill.<dtag0.skill>.key>]
MESSAGE @0481 <NAME>
RETURN 1

On=@dclick
SRC.EMOTE feel a bit wiser
SRC.<tag0.skill> += 10
consume
IF <SRC.<tag0.skill>> >= 1000
SRC.MESSAGE @0481 You are at maximum skill and cannot consume this!
src.<tag.skill> = 1000
endif
return 1

What am I working on?
(This post was last modified: 03-05-2014 09:36 AM by Soulless.)
03-05-2014 09:35 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)