Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
Van Glan Bloom 
Journeyman

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0
![]()
|
RE: Gold Loot
Hi again guys,
Once you have solved the problem d shrink and loot gold, a new problem. The system is not working on the players. The active player the gold loot system, but does not get the gold from mobs automatically.
Code:
[EVENTS e_money_collect]
ON=@Kill
if (<obj.isevent.e_exp)
newgold <argo.gold>
argo.gold = 0
return 0
endif
even if you put the system as mentioned last time (example below) it also turns out to not work in players
Code:
ON=@Kill
newgold <argo.gold>
argo.gold = 0
return 0
|
|
03-22-2015 08:21 AM |
|
|
Van Glan Bloom 
Journeyman

Posts: 104
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Jun 2013
Reputation: 0
![]()
|
RE: Gold Loot
I'll post the all script because I might be making a mistake somewhere in the script and not be detecting the bug :
Code:
[chardef c_system_pet_rabbit]
name=Rabbit
id=c_rabbit
CAN=MT_WALK|MT_RUN
on=@create
EVENTS +e_system_pet_rabbit
COLOR=0123
FOOD=100
STR=1
DEX=900
FLAGS=008000001
ON=@Click
message @0035 [Pet Rabbit]
on=@dclick
if !(<ismypet>)
SRC.SYSMESSAGE @09c1 The animal must be loyal to you!
return 1
elif (<food> >= 50)
src.dialog d_pet_configuration
return 1
elif (<food> <= 49 )
src.dialog d_pet_configuration_2
return 1
endif
ON=@HIT
RETURN 1
ON=@GETHIT
RETURN 1
ON=@DAMAGE
RETURN 1
ON=@ATTACK
return 1
CATEGORY=Isengard Shard
SUBSECTION=World NPCs
DESCRIPTION=Rabbit NPC
[ITEMDEF i_system_pet_rabbit]
id=i_pet_rabbit_2
Name=Rabbit
TYPE=t_figurine
ON=@Create
ATTR=attr_newbie
COLOR=0123
more1=c_system_pet_rabbit
CATEGORY=Isengard Shard
SUBSECTION=Trash Barrel
DESCRIPTION=Rabbit Figurine
Code:
[dialog d_pet_configuration]
0,0
PAGE 1
resizepic 79 48 2600 343 289
resizepic 141 111 9200 226 22
resizepic 141 139 9200 226 22
resizepic 201 167 9200 166 22
resizepic 141 195 9200 226 36
resizepic 141 237 9200 226 22
resizepic 141 265 9200 226 31
resizepic 266 203 9350 92 21
gumppic 171 72 2440
gumppic 154 76 216
gumppic 340 76 216
gumppic 117 114 9703
gumppic 117 142 9703
gumppic 117 207 9703
gumppic 117 273 9703
gumppic 217 273 2062
gumppic 316 284 2435
dtext 201 73 205 Pet Configuration
dtext 160 112 2947 Owned by
dtext 160 140 2947 Configuration
dtext 220 168 2947 Gold Auto-Loot
dtext 160 203 2947 Account Balance
dtext 272 203 2947 <SRC.GOLD>
dtext 160 238 2947 Shrink
dtext 160 271 2947 Energy :
dtext 258 271 2947 <src.targ.food> %
button 165 173 2361 2362 1 0 1
button 184 173 2360 2362 1 0 2
button 117 240 9702 9703 1 0 3
[dialog d_pet_configuration BUTTON]
onbutton=1
if (<src.isevent.e_money_collect>)
src.sysmessage @09c1 The collector of money already active.
src.dialog d_pet_configuration
return 1
elif (<src.isevent.e_no_money_collect>)
src.events +e_money_collect
src.events -e_no_money_collect
src.sysmessage @0044 You active the collector of money.
src.dialog d_pet_configuration
return 1
endif
onbutton=2
if (<src.isevent.e_no_money_collect>)
src.sysmessage @09c1 The collector of money already disabled.
src.dialog d_pet_configuration
return 1
elif (<src.isevent.e_money_collect>)
src.events +e_NO_money_collect
src.events -e_money_collect
src.sysmessage @0028 You disabled the collector of money.
src.dialog d_pet_configuration
return 1
endif
onbutton=3
src.petshrink
return 1
Code:
[FUNCTION petshrink]
NEWITEM=i_memory_system_pet_rabbit
EQUIP=<ACT>
[ITEMDEF i_memory_system_pet_rabbit]
DEFNAME=i_memory_system_pet_rabbit
NAME=Memory sYSTEM pET rABBIT
ID=i_memory
TYPE=t_eq_script
ON=@CREATE
ATTR=attr_move_never|attr_invis
ON=@EQUIP
TARGET
ON=@TARGON_CHAR
IF (<SRC.TARG.BODY>==c_man) || (<SRC.TARG.BODY>==c_woman) || (<SRC.TARG.NPC>==0)
src.sysmessage @09c1 You can not shrink a human!
return 1
elseif <src.targ.flags>&statf_conjured
src.sysmessage @09c1 You cannot shrink summoned pets!
return 1
elseif <src.targ.ismypet>
src.targ.shrink
src.sysmessage @09c1 Your pet, <src.targ.name>, has been shrunk.
remove
return 0
else
src.sysmessage @09c1 <src.targ.name>, This is not your pet
return 1
endif
[EVENTS e_no_money_collect] // add this too the player
[EVENTS e_money_collect]
ON=@Kill
NEWITEM=i_gold
ACT.AMOUNT=<ARGO.GOLD>
ACT.BOUNCE
ARGO.GOLD = 0
return 0
on=@logout
if (<src.isevent.e_money_collect>)
src.events +e_no_money_collect
src.events -e_money_collect
endif
return 1
[Events e_system_pet_rabbit]
ON=@ItemStep
if !((<act.attr> & attr_static) || (<act.type> == t_corpse) || (<act.attr> & attr_move_never) || (<act.attr> & attr_invis) || (<act.attr> & attr_owned) || (<act.type> == t_blood) || (<act.type> == t_container))
emote pick up an item for his master
act.cont=<owner.findlayer.layer_pack.uid>
endif
|
|
05-03-2015 08:32 AM |
|
|
User(s) browsing this thread: 2 Guest(s)