Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Simple Gold critter for increasing a gold for a player. To see the effects use the Simple Gold Counter
- var givenGold = 3;
- function died(event) {
- if(event.source.getType() == EntityType_PLAYER){
- if(event.npc.world.getStoreddata().has(event.source.getDisplayName() + "Gold")) {event.npc.world.getStoreddata().put((event.source.getDisplayName() + "Gold"),(event.npc.world.getStoreddata().get(event.source.getDisplayName() + "Gold") + givenGold));}
- else{event.npc.world.getStoreddata().put((event.source.getDisplayName() + "Gold"),givenGold);}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement