Jump to content

clickable fists

spellbyte ®

Recommended Posts

I know that fists are used if someone attacks a user who doesn't have a weapon, what i want to do is setup my attack script so that if for example i was to go and attack someone when i didn't have a weapon, i could choose to use my fists,

I know it would be pretty pointless but it's all a part of something else im working on, if anyone has any idea on this could please msg me either on here or MSN

thanks in advance

Link to comment
Share on other sites

Re: clickable fists

I'd probably just hard code it myself within attack.php.  I'd create a fake weapon in the items table called Fists.

Then during attack, if the person has no items to use, it does a Print line listing the item 'Fists' as a usable weapon.

Then of course if your attack code is done right, and blocks invalid weapon Ids, you'd have to add an exception to that rule that always allows fists.

If you wanted to go one step further, you could add an IF statement that doesn't allow you to use fists if you're already wielding a weapon.  This would prevent user tinkering to a degree.  Or maybe you want them to be able to do both.

I can't imagine spending more than 30 minutes on something like that

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...