Rename canParticipateSiegeTE into getpermissionwoete
This commit is contained in:
parent
b3d150c3a5
commit
3a558ff83b
@ -6674,7 +6674,7 @@ Theses commands behave identically to gvgon/gvgoff, but apply GVG_TE mapflag.
|
||||
|
||||
---------------------------------------
|
||||
|
||||
*canParticipateSiegeTE {<char id>};
|
||||
*getpermissionwoete({<char id>});
|
||||
|
||||
Return 1 if player can participate in WOE:TE, 0 otherwise.
|
||||
Currently third class, Kagerou/Oboro and Rebellion class can't participate in WOE:TE.
|
||||
|
@ -15,7 +15,7 @@ te_alde_gld,215,184,4 duplicate(TE Potion Merchant#prt) TE Potion Merchant#alde
|
||||
//=======================================
|
||||
- script rental_woe_TE -1,{
|
||||
mes "[Rental Items Manager]";
|
||||
if (canParticipateSiegeTE() == 1) {
|
||||
if (getpermissionwoete() == 1) {
|
||||
.@list01$ = "[Shield] [Armor] [Garment]";
|
||||
.@list02$ = "[Helmet] [Accessory] [Shoes]";
|
||||
.@list03$ = "[Sword] [Spear] [Axe] [Katar]";
|
||||
|
@ -160,7 +160,7 @@ S_Coord:
|
||||
7509,"30 Small Wooden Boxes" );
|
||||
}
|
||||
mes "["+ .@npc_name$ +"]";
|
||||
if (canParticipateSiegeTE() == 0) {
|
||||
if (getpermissionwoete() == 0) {
|
||||
mes "Ah... you...";
|
||||
mes "based on TE rules, I won't be ordering you or asking you favors unfortunately.";
|
||||
next;
|
||||
|
@ -78,7 +78,7 @@ OnTouch:
|
||||
end;
|
||||
|
||||
S_Warp:
|
||||
if (canParticipateSiegeTE() == 0) {
|
||||
if (getpermissionwoete() == 0) {
|
||||
mes "3rd and expansion job level can't enter in WoE TE.";
|
||||
close;
|
||||
}
|
||||
|
@ -1063,7 +1063,7 @@ function script F_flag_woe_TE {
|
||||
mes "Do you wish to return with honor?";
|
||||
next;
|
||||
if (select( "Return to the fortress.","Forget it." ) == 1) {
|
||||
if (canParticipateSiegeTE() == 0) {
|
||||
if (getpermissionwoete() == 0) {
|
||||
mes "Tertiary job class and users with expanded levels are not allowed to participate in Siege Battles TE.";
|
||||
close;
|
||||
}
|
||||
|
@ -21495,11 +21495,11 @@ BUILDIN_FUNC(getguildalliance)
|
||||
}
|
||||
|
||||
/**
|
||||
* canParticipateSiegeTE([<char_id>]);
|
||||
* getpermissionwoete([<char_id>]);
|
||||
* Check if player can participate in WOE:TE
|
||||
* @param char_id Player's CharID (optional)
|
||||
**/
|
||||
BUILDIN_FUNC(canParticipateSiegeTE) {
|
||||
BUILDIN_FUNC(getpermissionwoete) {
|
||||
TBL_PC *sd = NULL;
|
||||
|
||||
if (!script_charid2sd(2, sd)) {
|
||||
@ -22092,7 +22092,7 @@ struct script_function buildin_func[] = {
|
||||
BUILDIN_DEF(agitcheck3,""),
|
||||
BUILDIN_DEF(gvgon3,"s"),
|
||||
BUILDIN_DEF(gvgoff3,"s"),
|
||||
BUILDIN_DEF(canParticipateSiegeTE,"?"),
|
||||
BUILDIN_DEF(getpermissionwoete,"?"),
|
||||
|
||||
#include "../custom/script_def.inc"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user