Jump to content
  • 0

help with this script


PewN

Question


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

can anyone help me here. if the master got the "The map is your own now" the other guild there will warpout how can i do that?


guild_war,117,154,5 script Machine 100,{
L_main:
if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
if ( carac == 1 ) goto L_cant;
set .@fcast,15;
progressbar "ffff00",.@fcast;
set carac,1;
set $roser$, strcharinfo(3);
mes "This Map is your own now";
close;

L_cant:
mes "This Map is your own ok";
close;

L_c2:
mes "Other Player Configuring it";
close;

L_not_gm:
mes "Only Gms";
close;

L_warp:
if ($roser$ != strcharinfo(3))
set carac,0;
warpguild "Phantasia",0,0,getcharid(2);
close;

}

bump!

bump!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   26
  • Joined:  12/07/11
  • Last Seen:  

After capturing the map all the guild doesn't belong to the guild who capture the map will be warp out ?

maprespawnguildid "<map name>",<guild id>,<flag>;

*maprespawnguildid "<map name>",<guild id>,<flag>;

This command goes through the specified map and for each player and monster
found there does stuff.

Flag is a bit-mask (add up numbers to get effects you want)
1 - warp all guild members to their save points.
2 - warp all non-guild members to their save points.
4 - remove all monsters which are not guardian or Emperium.

Flag 7 will, therefore, mean 'wipe all mobs but guardians and the Emperium and
kick all characters out', which is what the official scripts do upon castle
surrender. Upon start of WoE, the scripts do 2 (warp all intruders out).

Characters not belonging to any guild will warp out regardless of the flag setting.

Then if someone will warp to that map Check if that character is belong to the guild who owns that map if not warp back.

getguildname(strcharinfo(2)) return the name of the guild of that character.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

After capturing the map all the guild doesn't belong to the guild who capture the map will be warp out ?

maprespawnguildid "<map name>",<guild id>,<flag>;

*maprespawnguildid "<map name>",<guild id>,<flag>;

This command goes through the specified map and for each player and monster
found there does stuff.

Flag is a bit-mask (add up numbers to get effects you want)
1 - warp all guild members to their save points.
2 - warp all non-guild members to their save points.
4 - remove all monsters which are not guardian or Emperium.

Flag 7 will, therefore, mean 'wipe all mobs but guardians and the Emperium and
kick all characters out', which is what the official scripts do upon castle
surrender. Upon start of WoE, the scripts do 2 (warp all intruders out).

Characters not belonging to any guild will warp out regardless of the flag setting.

Then if someone will warp to that map Check if that character is belong to the guild who owns that map if not warp back.

getguildname(strcharinfo(2)) return the name of the guild of that character.

i already try that. but when i use that my guild is the one who warp out

awtz. so i will try it to flag 2? oh sorry !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  185
  • Reputation:   26
  • Joined:  12/07/11
  • Last Seen:  

yes flag 2

2 - warp all non-guild members to their save points.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

thx!

how about this Gerome

set .guild$, strcharinfo(2);

then i want the name of the guild will set on pub

guild_war,113,152,4 script Sign Board 852,{
end;

OnInit:
waitingroom " [ "+.guild$+" ]",0;
end;
}

why the name of the guild not showing on pub here?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

a simple way for you if you doesnt know much with the variable passing / linking within npc..

$@guild$

you can just use a temporary global variable..so that all npc can access the variable.

since this is a temporary variable..it will be removed when u reboot server

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