Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ACMD(do_health)
- {
- struct obj_data *wielded = GET_EQ(ch, WEAR_WIELD);
- int atksk, attk;
- athind = GET_HIND(ch);
- if (athind < 0)
- athind = 0;
- //What skill does the weapon use?
- if (wielded && GET_OBJ_TYPE(wielded) == ITEM_WEAPON)
- atksk = GET_OBJ_VAL(wielded, 4);
- else
- send_to_char(ch, "You are not wielding a weapon\r\n");
- //Lets roll some dice!
- attk = roll_skill(ch, atksk, athind, GET_DEX(ch));
- send_to_char(ch, "Test return %d\r\n", attk);
- }
Advertisement
Add Comment
Please, Sign In to add comment