Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
+9 dagger
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #11
RE: +9 dagger
this seems to work for me...

Code:
ON=@ItemClick
if <act.amount> > 1
   return 0
endif

local.message = <act.name>
if <act.tag0.rare> == 1
    local.hue = 042//045 < -2 TO GET THE COLOR I WANT
  elseif <act.tag0.rare> == 2
    local.hue = 060//062
  elseif <act.tag0.rare> == 3
    local.hue = 06f//071
  elseif <act.tag0.rare> == 4
    local.hue = 029//02b
endif

if <act.attr>&attr_magic
  if <act.isweapon>
   local.message = +<ddef.wpn_magic_morey_<act.morey>> <act.name>
  elseif <act.isarmor>
    local.message = +<ddef.arm_magic_morey_<act.morey>> <act.name>
  endif
endif

  if !<local.hue>
   act.message <local.message>
  elseif <local.hue>>0
   local.hue = (<local.hue>+3)//TO MATCH COLORS
   act.message @<local.hue> <local.message>
   else
     act.message @<local.hue> <local.message>
  endif

  IF <act.attr>&attr_newbie
    act.message @035 [newbied]
  ENDIF

  IF (<EVAL <ACT.TAG0.MILITARY>>==1)
    act.message @07d6 [military property]
  ENDIF

RETURN 1

Dragons of Time 2000-2020
http://dragonsoftime.com
04-26-2019 09:13 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)