Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest point_system begin
- state start begin
- when kill with not npc.is_pc() and boss.exist(npc.get_race()) begin
- local race = npc.get_race();
- local data = boss.getData()[race];
- local index = data["points"];
- local name = data["name"];
- local points = pc.getqf("point")
- pc.setqf("points", points+index);
- syschat(string.format("Parabéns, mataste %s e ganhaste %d pontos!", name, index));
- end --when
- end --state
- end --quest
Advertisement
Add Comment
Please, Sign In to add comment