Jump to content
  • 0

Land Protector Area


Jin Freecs

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   3
  • Joined:  12/22/11
  • Last Seen:  

i have my capture the flag in my server but the problem is my players specially mage class that have AOE skills can spawn camp in enemy 's base it's kinda annoying to other team who's suffering from this kind of tactics. so my request is there a chance to make a script to auto cast LAND PROTECTOR in area and repeat every 2-3 sec?

Regards

Edited by Jin Freecs
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

you need setcell i think yes i checked map.c and found this:

case CELL_LANDPROTECTOR: map[m].cell[j].landprotector = flag; break;

so same like basilica on script_commands

setcell "arena",140,140,160,160,cell_basilica,0;

setcell "arena",140,140,160,160,cell_landprotector,0;

try it..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   3
  • Joined:  12/22/11
  • Last Seen:  

Thanks for the very fast reply i tried that b4 but still not working

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

I tried it, just now it works only thing is no effects LOL but working.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   3
  • Joined:  12/22/11
  • Last Seen:  

ohhh i tried that but i can't see any effect lol and anyway how to add effect? kindly give me script or attach here the script with auto land pro and with effect thanks

Edited by Jin Freecs
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

i'm not sure about that if it's possible as i checked the script i can't find anything with skilleffect or something that tells a specific area for the effect to occur. :), my suggestion is to edit the Map and something like add a square border for their respawn point..

this is from script_commands:

*skilleffect <skill id>,<number>;

*skilleffect "<skill name>",<number>;

This command displays visual and aural effects of given skill on currently

attached character. The number parameter is for skill whose visual effect

involves displaying of a number (healing or damaging). Note, that this command

will not actually use the skill, it is intended for scripts, which simulate

skill usage by the NPC, such as buffs, by setting appropriate status and

displaying the skill's effect.

mes "Be blessed!";

// Heal of 2000 HP

heal 2000,0;

skilleffect 28,2000;

// Blessing Level 10

sc_start 10,240000,10;

skilleffect 34,0;

// Increase AGI Level 5

sc_start 12,140000,5;

skilleffect 29,0;

This will heal the character with 2000 HP, buff it with Blessing Lv 10 and

Increase AGI Lv 5, and display appropriate effects.

---------------------------------------

*npcskilleffect <skill id>,<number>,<x>,<y>;

*npcskilleffect "<skill name>",<number>,<x>,<y>;

This command behaves identically to 'skilleffect', however, the effect will not

be centered on the invoking character's sprite, nor on the NPC sprite, if any,

but will be centered at map coordinates given on the same map as the invoking

character.

---------------------------------------

*specialeffect <effect number>{,<send_target>}{,"<NPC Name>"};

This command will display special effect with the given number, centered on the

specified NPCs coordinates, if any. For a full list of special effect numbers

known see 'doc/effect_list.txt'. Some effect numbers are known not to work in

some client releases. (Notably, rain is absent from any client executables

released after April 2005.)

<NPC name> parameter will display <effect number> on another NPC. If the NPC

specified does not exist, the command will do nothing. When specifying an NPC,

<send_target> must be specified when specifying an <NPC Name>, specifying AREA

will retain the default behavior of the command.

// this will make the NPC "John Doe#1"

// show the effect "EF_HIT1" specified by

// Jane Doe. I wonder what John did...

mes "[Jane Doe]";

mes "Well, I never!";

specialeffect EF_HIT1,AREA,"John Doe#1";

close;

---------------------------------------

*specialeffect2 <effect number>{,<send_target>}{,"<Player Name>"};

This command behaves identically to the 'specialeffect', but the effect will be

centered on the invoking character's sprite.

<Player name> parameter will display <effect number> on another Player than the

one currently attached to the script. Like with specialeffect, when specifying

a player, <send_target> must be supplied, specifying AREA will retain the default

behavior of the command.

I'm not sure about the npcskilleffect though., let's wait for the veterans if they know something about this.

Edited by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   3
  • Joined:  12/22/11
  • Last Seen:  

Thank you very much ngek202 for helping and answering here i really appreciate it thanks :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

well I tried it but the result wasn't the exact the effect that should be the square shinny floor...

the effect was the swirling circle where Land Protector was being Cast.

prontera,147,175,5 script test 94,{
menu "Apply LP",-,"Remove LP",R_LP;
setcell "prontera",151,167,161,177,cell_landprotector,1;
npcskilleffect 288,0,156,172;
close;

R_LP:
setcell "prontera",151,167,161,177,cell_landprotector,0;
close;

end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  63
  • Reputation:   3
  • Joined:  12/22/11
  • Last Seen:  

wow sorry for the late reply :) can you make it automated every 1-2 sec cast on the floor and the area of effect is like land pro thank you very much im very sorry for the late reply thanks

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
Answer this question...

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