Jump to content
  • 0

how to restrict stats for woe map, pls help


johnzaza

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  08/03/13
  • Last Seen:  

with max stats 600

i would like to set only stats not more than 200 for payon castle

and max stats 400 for pron castle 

are there any way i can restict max stats for each castle,please help

excuse me for my bad english

Thank you

 

Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   20
  • Joined:  02/05/13
  • Last Seen:  

I'm not 100% sure if this is possible but if it is, I don't think it would be by script.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Most likely it will look like this : http://pastebin.com/raw.php?i=ub15zRSS

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  08/03/13
  • Last Seen:  

thankyou 

i'll try that

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  08/03/13
  • Last Seen:  

it's not working

even stats lessthan 200 still can not get in

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Any error? I have tried it and works fine on my server

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

well since this is script support, a complete script shouldn't be provided,

but point out how to write

any castle maps already has nowarpto mapflag enabled, so you can try tackle it by replace the warp portal with npc script

 

disablenpc "payg01";
disablenpc "payg02";
.... and so on
which can be found in

npc\warps\guild\guildcastles.txt

then make the npc with portal sprite

pay_gld,121,238,0	script	payg01_statlimit	45,1,1,{
	callfunc "F_guild_statlimit", "payg_cas01", 214,48;
}
function	script	F_guild_statlimit	{
	....
	warp getarg(0), getarg(1), getarg(2);
}
that's one way to do it

I think when he said your script not working, is probably because he didn't include all those loadevent mapflag

using OnPCLoadMapEvent is quite wasting resources though

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  08/03/13
  • Last Seen:  

sorry i may post on wrong topic 

may i have full script since i am new here

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

function	script	F_castle_statlimit	{
	for ( .@i = 13; .@i < 19; .@i++ ) {
		if ( readparam( .@i ) > 200 ) {
			message strcharinfo(0), "You can't enter this map with your stats";
			end;
		}
	}
	warp getarg(0), getarg(1), getarg(2);
	return;
}

prt_gld,129,65,0	script	prtg-1_prtg-1-01_	45,1,1,{ callfunc "F_castle_statlimit" ,"prtg_cas01",99,32; }
prt_gld,240,124,0	script	prtg-2_prtg-2_	45,1,1,{ callfunc "F_castle_statlimit", "prtg_cas02",43,229; }
prt_gld,153,141,0	script	prtg-3_prtg-3_	45,1,1,{ callfunc "F_castle_statlimit", "prtg_cas03",168,12; }
prt_gld,107,240,0	script	prtg-4_prtg-4_	45,1,1,{ callfunc "F_castle_statlimit", "prtg_cas04",86,13; }
prt_gld,212,240,0	script	prtg-5_prtg-5_	45,1,1,{ callfunc "F_castle_statlimit", "prtg_cas05",17,235; }

gef_fild13,150,54,0	script	gef-g1-0_gefg-1-07_	45,1,1,{ callfunc "F_castle_statlimit", "gefg_cas01",34,140; }
gef_fild13,210,75,0	script	gef-g1-1_gefg-1-04_	45,1,1,{ callfunc "F_castle_statlimit", "gefg_cas01",95,178; }
gef_fild13,308,244,0	script	gef-g2_gefg-2-07_	45,1,1,{ callfunc "F_castle_statlimit", "gefg_cas02",70,143; }
gef_fild13,77,284,0	script	gef-g3-0_g-cas3-12_	45,1,1,{ callfunc "F_castle_statlimit", "gefg_cas03",60,286; }
gef_fild13,112,269,0	script	gef-g3-1_g-cas3-13_	45,1,1,{ callfunc "F_castle_statlimit", "gefg_cas03",100,280; }
gef_fild13,139,240,0	script	gef-g3-2_g-cas3-14_	45,1,1,{ callfunc "F_castle_statlimit", "gefg_cas03",125,250; }
gef_fild13,83,185,0	script	gef-g3-3_g-cas3-15_	45,1,1,{ callfunc "F_castle_statlimit", "gefg_cas03",89,159; }
gef_fild13,196,281,0	script	gef-g4_gefg-4-05_	45,1,1,{ callfunc "F_castle_statlimit", "gefg_cas04",24,149; }
gef_fild13,256,57,0	script	gef-5-0_gefg-5-04_	45,1,1,{ callfunc "F_castle_statlimit", "gefg_cas05",11,134; }
gef_fild13,305,83,0	script	gef-5-1_gefg-5-01_	45,1,1,{ callfunc "F_castle_statlimit", "gefg_cas05",99,200; }

pay_gld,121,238,0	script	payg-1_payg-1-06_	45,1,1,{ callfunc "F_castle_statlimit", "payg_cas01",214,48; }
pay_gld,291,116,0	script	payg-2_payg-2-02_	45,1,1,{ callfunc "F_castle_statlimit", "payg_cas02",272,57; }
pay_gld,323,293,0	script	payg-3_payg-3-07_	45,1,1,{ callfunc "F_castle_statlimit", "payg_cas03",226,26; }
pay_gld,140,156,0	script	payg-4_payg-4-01_	45,1,1,{ callfunc "F_castle_statlimit", "payg_cas04",252,271; }
pay_gld,204,270,0	script	payg-5_payg-5-03_	45,1,1,{ callfunc "F_castle_statlimit", "payg_cas05",62,227; }

alde_gld,48,79,0	script	aldeg-1_aldeg-1-1_	45,1,1,{ callfunc "F_castle_statlimit", "aldeg_cas01",34,248; }
alde_gld,95,253,0	script	aldeg-2_aldeg-2-1_	45,1,1,{ callfunc "F_castle_statlimit", "aldeg_cas02",88,163; }
alde_gld,142,81,0	script	aldeg-3_aldeg-3-1_	45,1,1,{ callfunc "F_castle_statlimit", "aldeg_cas03",114,286; }
alde_gld,243,242,0	script	aldeg-4_aldeg-4-1_	45,1,1,{ callfunc "F_castle_statlimit", "aldeg_cas04",149,17; }
alde_gld,259,90,0	script	aldeg-5_aldeg-5-1_	45,1,1,{ callfunc "F_castle_statlimit", "aldeg_cas05",216,103; }

sch_gld,293,90,0	script	schg102_	45,1,1,{ callfunc "F_castle_statlimit", "schg_cas01",119,8; }
sch_gld,288,258,0	script	schg202_	45,1,1,{ callfunc "F_castle_statlimit", "schg_cas02",339,78; }
sch_gld,97,183,0	script	schg302_	45,1,1,{ callfunc "F_castle_statlimit", "schg_cas03",337,330; }
sch_gld,137,98,0	script	schg402_	45,1,1,{ callfunc "F_castle_statlimit", "schg_cas04",119,8; }
sch_gld,65,315,0	script	schg502_	45,1,1,{ callfunc "F_castle_statlimit", "schg_cas05",119,8; }

aru_gld,155,274,0	script	arug102_	45,1,1,{ callfunc "F_castle_statlimit", "arug_cas01",275,93; }
aru_gld,78,47,0	script	arug202_	45,1,1,{ callfunc "F_castle_statlimit", "arug_cas02",139,31; }
aru_gld,68,150,0	script	arug302_	45,1,1,{ callfunc "F_castle_statlimit", "arug_cas03",141,45; }
aru_gld,289,347,0	script	arug402_	45,1,1,{ callfunc "F_castle_statlimit", "arug_cas04",141,45; }
aru_gld,287,107,0	script	arug502_	45,1,1,{ callfunc "F_castle_statlimit", "arug_cas05",141,45; }

-	script	castle_warp_disable	-1,{
OnInit:
	sleep 1;
	disablenpc "prtg-1_prtg-1-01";
	disablenpc "prtg-2_prtg-2";
	disablenpc "prtg-3_prtg-3";
	disablenpc "prtg-4_prtg-4";
	disablenpc "prtg-5_prtg-5";
	disablenpc "gef-g1-0_gefg-1-07";
	disablenpc "gef-g1-1_gefg-1-04";
	disablenpc "gef-g2_gefg-2-07";
	disablenpc "gef-g3-0_g-cas3-12";
	disablenpc "gef-g3-1_g-cas3-13";
	disablenpc "gef-g3-2_g-cas3-14";
	disablenpc "gef-g3-3_g-cas3-15";
	disablenpc "gef-g4_gefg-4-05";
	disablenpc "gef-5-0_gefg-5-04";
	disablenpc "gef-5-1_gefg-5-01";
	disablenpc "payg-1_payg-1-06";
	disablenpc "payg-2_payg-2-02";
	disablenpc "payg-3_payg-3-07";
	disablenpc "payg-4_payg-4-01";
	disablenpc "payg-5_payg-5-03";
	disablenpc "aldeg-1_aldeg-1-1";
	disablenpc "aldeg-2_aldeg-2-1";
	disablenpc "aldeg-3_aldeg-3-1";
	disablenpc "aldeg-4_aldeg-4-1";
	disablenpc "aldeg-5_aldeg-5-1";
	disablenpc "schg102";
	disablenpc "schg202";
	disablenpc "schg302";
	disablenpc "schg402";
	disablenpc "schg502";
	disablenpc "arug102";
	disablenpc "arug202";
	disablenpc "arug302";
	disablenpc "arug402";
	disablenpc "arug502";
	end;
}
 

I just noticed Euphy's WOE Controller also uses OnPCLoadMapEvent ... I also think he should change to use disablenpc method instead

castle_warp_disable.txt

adds attachment because this script has many tabs

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  08/03/13
  • Last Seen:  

Thank you

by this way how to prevent that if guild master stats 200 but recall guild members stats 200+ from insde the castle

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

// Emergency Recall Guild Skill setting (add as appropriate).

// Note that for the skill to be usable at all,

// you need at least one of 1/2 and 4/8

// 1: Skill is usable outside of woe.

// 2: Skill is usable during woe.

// 4: Skill is usable outside of GvG grounds

// 8: Skill is usable on GvG grounds

//16: Disable skill from "nowarpto" maps

// (it will work on GVG castles even if they are set to nowarpto, though)

emergency_call: 11

*hides*

you are right, emergency recall can be use in gvg_castle maps by default configuration

either you off this skill by changing this setting or refer the script on post#3 using loadevent ...

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