EOSERV Forum > EOSERV > Abc : Please tell me how to make Aoe wepons
Topic is locked.
Page: << 1 >>
Abc : Please tell me how to make Aoe wepons
Author Message
Post #56954 Abc : Please tell me how to make Aoe wepons


Hello someone help me To make Aoe Weapons

14 years, 21 weeks ago
Post #56959 Re: Abc : Please tell me how to make Aoe wepons

Use the search button it helps a lot.


Heres one its not the best but there are others on the forum. USE THE SEARCH BUTTON

https://eoserv.net/forum/topic/8924

---
http://www.torn.com/478456
14 years, 21 weeks ago
Post #56960 Re: Abc : Please tell me how to make Aoe wepons

Here is about 40 lines less and can go near the end of Map::Attack in map.cpp:

int distance = util::path_length(target_x, target_y, closeby->x, closeby->y);

if (distance <=2 && closeby->alive)

{

*Effect/Damage functions go here

}

*NPC "closeby" should be defined in a loop (this->npcs, NPC, closeby). Also, weapons should have an unused flag that could be used to declare what effect if any is to be cast in an area.

14 years, 21 weeks ago
Post #57013 Re: Abc : Please tell me how to make Aoe wepons


Hey thx apolllo its work 100% but i need one 6x6 not just 4

please help me :{

14 years, 21 weeks ago
Post #57015 Re: Abc : Please tell me how to make Aoe wepons

No need to post a new topic for the range. If you want to change it then just make distance <= 6 in the if statement.

14 years, 21 weeks ago
Post #57019 Re: Abc : Please tell me how to make Aoe wepons


Tell me where to add 6 i cant find

 

 

lol sorry

14 years, 21 weeks ago
Post #57066 Re: Abc : Please tell me how to make Aoe wepons

instead of 2  use 6

if (distance <=2 && closeby->alive)

{


}

14 years, 21 weeks ago
Post #57405 Re: Abc : Please tell me how to make Aoe wepons

i get this error when i compile


C:\Documents and Settings\HP_Administrator\Desktop\Trunk\src\map.cpp||In member function 'bool Map::AttackPK(Character*, Direction)':|
C:\Documents and Settings\HP_Administrator\Desktop\Trunk\src\map.cpp|1748|error: 'closeby' was not declared in this scope|
C:\Documents and Settings\HP_Administrator\Desktop\Trunk\src\map.cpp||In member function 'bool Map::AttackPKSpell(Character*, int, int)':|
C:\Documents and Settings\HP_Administrator\Desktop\Trunk\src\map.cpp|1794|warning: comparison between signed and unsigned integer expressions|
||=== Build finished: 1 errors, 1 warnings ===|

14 years, 20 weeks ago
Page: << 1 >>
Topic is locked.
EOSERV Forum > EOSERV > Abc : Please tell me how to make Aoe wepons