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
+9 dagger
Author Message
Mad Gunther
Apprentice
*

Posts: 45
Likes Given: 11
Likes Received: 5 in 5 posts
Joined: Oct 2015
Reputation: 1



Post: #10
RE: +9 dagger
I have just used the defs of the script you shared of souless and drk the other day with a new trigger. With @ItemAfterClick you avoid some weird errors that happends with the other script when you click the weapon on paperdoll.

In my shard weappons values are:1,3,5,7,9,10 and armors:5,10,15,20,25. But you can suit the script easily for your needs.

Code:
//add to sphere_defs
[DEFNAME SpherOldWeaponMagicPrefix]
wpn_magic_morey_10      1
wpn_magic_morey_250     3
wpn_magic_morey_500     5
wpn_magic_morey_750     7
wpn_magic_morey_1000    9
wpn_magic_morey_1250    10

[DEFNAME SpherOldArmorMagicPrefix]
arm_magic_morey_200     5
arm_magic_morey_400     10
arm_magic_morey_600     15
arm_magic_morey_800     20
arm_magic_morey_1000    25

//add event to player
//WARNING: gotta change all MOREY=1.0 values to MOREY=10.0 for each //weapon/armor

[events e_magicwpn]
On=@ItemAfterClick
if ((<act.isweapon>) && (<act.attr>&attr_magic))
local.clickmsgtext=+<ddef.wpn_magic_morey_<act.morey>> <act.name>
local.clickmsghue=<f_magicwpncolour>
elif ((<act.isarmor>) && (<act.attr>&attr_magic))
local.clickmsgtext=+<ddef.arm_magic_morey_<act.morey>> <act.name>
endif

//different colours for each magic value only for weapons.
//1,3,5,7,9,10
[function f_magicwpncolour]
argn1=<act.morey>
//argn2=hue code
if (<argn1>==10)
argn2=0a37
elif (<argn1>==250)
argn2=07be
elif (<argn1>==500)
argn2=067a
elif (<argn1>==750)
argn2=09de
elif (<argn1>==1000)
argn2=04e9
elif (<argn1>==1250)
argn2=0959
else
argn2=0
endif
return <argn2>

[Image: CYeMBAL.png?1]

[Image: Fnjp8Mn.png?1]

This is the only thing that have work out for me. It´s true what´s been said around this land bout you can customize anything in sphere without hardcoding it lol. It´s hella cool how you can customize these kind of things in sphere with no effort and make it look rad.
(This post was last modified: 04-26-2019 07:18 AM by Mad Gunther.)
04-26-2019 07:14 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
+9 dagger - x77x - 04-09-2018, 06:42 AM
RE: +9 dagger - ShiryuX - 04-09-2018, 01:42 PM
RE: +9 dagger - Coruja - 04-12-2018, 04:41 AM
RE: +9 dagger - x77x - 04-12-2018, 08:42 AM
RE: +9 dagger - Coruja - 04-12-2018, 03:06 PM
RE: +9 dagger - Mad Gunther - 03-02-2019, 05:32 AM
RE: +9 dagger - Coruja - 03-10-2019, 08:12 AM
RE: +9 dagger - Mad Gunther - 04-21-2019, 05:40 AM
RE: +9 dagger - x77x - 04-22-2019, 11:07 AM
RE: +9 dagger - Mad Gunther - 04-26-2019 07:14 AM
RE: +9 dagger - Coruja - 05-26-2019, 06:17 AM
RE: +9 dagger - x77x - 04-26-2019, 09:13 AM
RE: +9 dagger - ShiryuX - 05-20-2019, 03:01 AM
RE: +9 dagger - x77x - 05-21-2019, 09:02 PM
RE: +9 dagger - ShiryuX - 05-28-2019, 08:19 PM

Forum Jump:


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