Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pick and digg
Author Message
Darkyhood
Apprentice
*

Posts: 36
Likes Given: 2
Likes Received: 3 in 3 posts
Joined: Mar 2012
Reputation: 0



Post: #2
RE: pick and digg
(07-28-2018 07:28 PM)PurpleHaze Wrote:  if (<src.targ.type>==t_terrain type)
Should be just t_terrain and you should have this type in your scripts. For debug you can add some logs and fix this problem by self. For example:
Code:
[ITEMDEF i_pickmagic]
ID=i_pickaxe
NAME=Magic Pickaxe

ON=@Create
MOREY=10

ON=@Targon_Ground
if (<src.targ.type>==t_terrain type)
MOREY=(<eval <morey>>-1)
serv.log I can dig!
Return 0
else
serv.log Something wrong!
Return 1
endif
07-28-2018 11:18 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
pick and digg - PurpleHaze - 07-28-2018, 07:28 PM
RE: pick and digg - Darkyhood - 07-28-2018 11:18 PM
RE: pick and digg - PurpleHaze - 07-29-2018, 06:55 AM
RE: pick and digg - Coruja - 07-29-2018, 04:24 PM
RE: pick and digg - PurpleHaze - 07-31-2018, 09:01 AM
RE: pick and digg - fabiohvp - 07-31-2018, 01:03 PM
RE: pick and digg - PurpleHaze - 08-01-2018, 05:07 AM

Forum Jump:


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