Jump to content
Sign in to follow this  
KyleMassacre

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

Share this post


Link to post
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?

Share this post


Link to post
Share on other sites

.....why mug me, Kyle? :p

I wanna look at the source when I have a chance, if I may, Kyle?

Share this post


Link to post
Share on other sites

Ok the combat module should have been updated, and should link you to the lost battle link in case you loose... without putting you in the hospital. Is it what you want?

Share this post


Link to post
Share on other sites

It is actually the easiest thing I have done and ill submit it soon.

Ok its submitted and as soon as it gets accepted ill open it up for download

Edited by KyleMassacre
submitted to MP

Share this post


Link to post
Share on other sites

The module has been accepted. So now you guys can see how simple the combat module makes it to create any type of personalized combat extension.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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 ;)

Share this post


Link to post
Share on other sites

So do they have to actually fight before they mug?

I may look at adding this in although I think the message option is a necessity so I don't get complaints like "Its not working, my gold is disappearing!"

Share this post


Link to post
Share on other sites

Yes, it does go through the combat scenario. So just check it out and if its not there then its super easy to add but I'm like 90% sure I added something for a notification

Share this post


Link to post
Share on other sites
Nice little addition but no message.

Ok when I get a moment I can update it but for now you can add it in there if you would like. It would be much quicker that way anyway

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...