Jump to content
MakeWebGames

Mug Other Players


Recommended Posts

Hello there NWE community! I am creating a module to mug other players through the combat module and I am almost done with it but here is a quick run down:

A player starts a combat session:

[ATTACH=CONFIG]891[/ATTACH]

[ATTACH=CONFIG]892[/ATTACH]

And if the player wins then they "Mug" money from that player

[ATTACH=CONFIG]893[/ATTACH]

I added a user variable just incase people wanted to display mug stats like how much money a player has mugged from another

Things to come is:

A mug back feature, where if the attacker loses then the player attacked will take money from their beaten down body

196077849_Picture1.thumb.png.f85975c16a5b7c5d50df1e89008b1e8a.png

1960626045_Picture2.thumb.png.242b841b14d5903055ef82c7ea980de4.png

1341029027_Picture3.thumb.png.1a415712e4e9aeff09eea4352650f6c2.png

Link to comment
Share on other sites

So, im having a little issue with the mugging back and can use a bit of help alain. Im looking at the start combat func and see a success link (which works fine) but the fail link im having a problem with. To me it looks like the only time it lets me use the fail link is if the inhospital function doesnt exist or if I leave the fail link blank. Is it supposed to be like that and/or is there a way to change it to be able to set a fail link and default to something if its blank?

Link to comment
Share on other sites

  • 2 months later...
Does this notify the user about their loss and who did it?

How does the mugging take place through actual combat?

What stops a really high level players from just taking gold from all the weaker ones?

Hmmmm.

1. I haven't actually looked at this code in a while but I believe I send a message to the player if not I can add that in easily

2. Through the start player combat function. This function is quite nice the way it is set up.

3. Nothing stops them I didn't add any type of safeguard to protect weak players. if your economy is balanced right weak, or lower players won't have a lot of money so the big guys probably won't waste their AP on them that often ;)

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.

Guest
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...