Thread Rating:
- 0 Votes - 0 Average
- 1
- 2
- 3
- 4
- 5
New house tool event
|
Author |
Message |
Sum 
Apprentice

Posts: 40
Likes Given: 32
Likes Received: 5 in 4 posts
Joined: Feb 2016
Reputation: 0
![]()
|
New house tool event
I'm making a new house placement tool , in the event i created it deducts the gold from the player when the house is created just fine but if another player is in the way or the terrain is to bumpy it still takes the gold and the house is not placed. i need it to just cancel out and not take the gold but i cannot figure it out for the life of me lol.
thanks in advance!
Code:
[EVENTS e_houseplace]
ON=@itemCreate
IF (<src.tag0.placehouse> ==1) && (<argo.type> == t_multi) || (<argo.type> == t_multi_custom)
src.tag0.goldlast=<src.gold>
src.tag.placehouse=
src.gold -= <argo.value>
src.sysmessage @0481 You pay <argo.value> for your new home.
return 0
endif
(This post was last modified: 02-12-2017 01:40 PM by Sum.)
|
|
02-12-2017 01:33 PM |
|
|
Messages In This Thread |
New house tool event - Sum - 02-12-2017 01:33 PM
|
User(s) browsing this thread: 1 Guest(s)