- Algumas funções para ajudar com o scripting de Custom Npc 1.7.10 interagindo com o mod Dragon Block C
- Some functions to help with Custom Npc 1.7.10 scripting interacting with the Dragon Block C mod
- Interact Hook
npc.say("Hey " + player.getName() + " sua vida atual é de: " + getDbcHealth(player));
- Damaged Hook
if(event.getSource().typeOf(1)){
npc.say("Hey " + event.getSource().getName() + " sua CON atual é de: " + getDbcAttributes(event.getSource()).con);
}
- Attack Hook
if(npc.getAttackTarget().typeOf(1)){
setDbcAttributes(npc.getAttackTarget()).con(20);
npc.say("Sua nova con é de 20!");
}
- Interact hook
setDbcAttributes(player).str(getDbcAttributes(player).str + 5);