Jump to content
MakeWebGames

Recommended Posts

Posted

*Note*

This was originally the GRPG attack.script.

**/End Note**

This Mod Currently does the Following.

1. 1 Click Attack.

2. Takes the Attackers Armor + Guard and subtracts Defenders Weapon And Strength for the calculation of damage.

3. Takes the Defenders Weapon and Strength and subtracts it from the Attackers Guard and Armor for the calculation of damage.

4. Several query checks to secure.

5. Fully Functional Drop in replacement.

6. IF no primary or Secondary weapon the attacker uses his fists. Damage calculated by guard+armor - strength of attacker or defender.

ANY problems post here i've only spent a few hours on this. This mod originall was the attack script from the GRPG engine, it's just been severly edited.

There is a Far more Advanced Version of this using the Item Mod with Helmet/boots/Leggings etc that are calculated in, but I'm keeping those for my forums alone, have to have something to appeal to users ;-)

If you are interested in that mod you can find it at

http://www.Maketextgames.com

Enjoy, any problems let me know.

attack.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 
Posted

I am pretty bored and knackered so i didn't test this but it may help (can tell i've been working with arrays lately...)

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

I noticed when completing that it would need a little more editing to work with username and location but hell knock yourselves out im off to bed lol

Posted

you and your darn jail/hospital array :P

It's actually shorter in this script, though you're suggesting a global one i assume :P

Someday i may actually write something out like that that'll work :P

Posted

Aye i need to add one bit should take a few seconds, so it actually shows the weapon when you do the attacking instead of just saying fists

simple stuff i was just focusing on the advanced version ><

  • 2 months later...
Posted

hey

sweet code, thanks for it, i though i had a bunch of errors........all the text was white, so is my background, fixed, added a back button to both person wins so it's good to go!

Posted

Glad to hear it, I tested the crap out of it and never had problems after i got it up and running, so some of these errors others are having is bizzarre to me, though i havent spent much time going through it again

  • 4 weeks later...
  • 2 months later...
Posted

So you're the one who made this attack system.....

I personally am going to kick your ass for it Joshua.

(I've fixed it so many times - granted modified).

:P

Good job.

Posted

Yea i've been meaning to put the updated fixed program on here, just a few small things were leaking but all in all it works wonders.

I just recently modified it for a client so that all the results get put into a sum Total

ie instead of you hit for 1

they hit for1

you hit for 1

they hit for 1

etc

it just sums up the while loop and does the outcome then prints out a message. Added some css / background boxes for the username/id and weapon picture they are using, then added the gang battle stuff into it.

Let it be known i did not make this mod from scratch, i found it off the GRPG script and altered the hell out of it ><

Posted

I have been and am continuing to do so.

The original Mod i made of this was very basic.

Then I made one where it uses the Multi Inventory Mod, same script just add-ons.

Now I've totally re-done it for a customer to do what they want.

My next Idea is to make a One Hit attack mod, so multiple users can attack the same person at once.

  • 1 year later...
  • 2 weeks later...
Posted

so, now that maketextgames is dead, where can we find the other version with multiple armors? and, when do we get to see this advanced version? I'm guessing all that this thread promises is as dead as maketextgames?

  • 3 months later...
Posted

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

How to fix this error?

Im already play around with this part :

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Sorry im still noobish. :o

Thanks in advance.

  • 1 month later...
Posted (edited)

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

I would use

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Edited by Primed
typo
  • 6 months later...

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