Guest User

Untitled

a guest
Apr 10th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. quest point_system begin
  2. state start begin
  3. when kill with not npc.is_pc() and boss.exist(npc.get_race()) begin
  4. local race = npc.get_race();
  5. local data = boss.getData()[race];
  6. local index = data["points"];
  7. local name = data["name"];
  8. local points = pc.getqf("point")
  9. pc.setqf("points", points+index);
  10. syschat(string.format("Parabéns, mataste %s e ganhaste %d pontos!", name, index));
  11. end --when
  12. end --state
  13. end --quest
Advertisement
Add Comment
Please, Sign In to add comment