Jump to content

donkeyg

Members
  • Posts

    1060
  • Joined

  • Last visited

Everything posted by donkeyg

  1. as the code shown // Forbidden Items Database // Defines restrictions on equipment, items, and cards in map types and zones. // // Structure of Database: // ItemID,Flag // // Legend for 'Flag' field (bitmask): // 1 - restricted in normal maps // 2 - restricted in PVP // 4 - restricted in GVG // 8 - restricted in Battlegrounds // Examples: // 1201,1 // Knife can't be worn on normal maps // 608,4 // Yggdrasil Seed can't be consumed in both GvG and WoE Castles // 4174,6 // Deviling Card has no effect in every PVP or GVG map, and during WoE // 501,32 // Red Potion can't be consumed on maps marked as 'restricted zone 1'// 519,322 // Milk can't be consumed in PVP and maps marked as 'restricted zone 2' or 'restricted zone 4' (256+64+2) May i ask if i want to disable abyssmal kngiht card in GVG/PVP so i need to type like this? 1482,6 then how do i add prt_in as PVP map? i wan to restrct them usnig the item in "prt_in" as well
  2. can u help me check... im still can wear the both items into prtg_cas03 without been kick from the system.. here is my script - script Limited Items -1,{ function LimitItems; function CheckItems; OnInit: // GM Level to Bypass set .GMLevel,80; // Check Every X Seconds set .Seconds,5; // Apply on Which Maps and what Zone No. setarray .DisableMap$, // "<mapname>","<zone number>", "prtg_cas03","0"; for( set .i,0; .i < getarraysize( .DisableMap$ ); set .i,.i + 2 ) setmapflag .DisableMap$[.i],mf_loadevent; end; OnPCLoadMapEvent: //if( getgmlevel() >= .GMLevel ) end; set @Exceed,0; for( set .@i,0; .@i < getarraysize( .DisableMap$ ); set .@i,.@i + 2 ) if( strcharinfo(3) == .DisableMap$[.@i] ) LimitItems( atoi( .DisableMap$[.@i+1] ) ); end; function LimitItems { switch( getarg(0) ){ // Case <zone>: CheckItems( <Item>,<Amount>,<Item>,<Amount>,.....,<Item>,<Amount> ); break; Case 0: CheckItems( 4302,1,4174,1 ); break; default: debugmes "[NPC : "+strnpcinfo(0)+"] - Invalid Zone:"+getarg(0); break; } return; } function CheckItems { for( set .@i,0; getarg( .@i,0 ); set .@i,.@i + 2 ){ for( set .@eq,0; .@eq <= 10; set .@eq,.@eq + 1 ) for( set .@slot,0; .@slot <= getequipcardcnt( .@eq ); set .@slot,.@slot + 1 ) if( getequipcardid( .@eq,.@slot ) == getarg(.@i) ) set .@Limit,.@Limit + 1; set .@Limit,.@Limit + countitem( getarg(.@i) ); if( .@Limit > getarg(.@i+1) ){ set @Exceed,1; mes "[ ^FF0000Limit : ^0000FF"+getarg(.@i+1)+"^000000 ] "+getitemname( getarg(.@i) ); } } if( @Exceed ){ mes "Please ensure all the Items above didnt reach the Limit as stated above."; close2; warp "SavePoint",0,0; deltimer strnpcinfo(0)+"::OnPCLoadMapEvent"; }else{ addtimer ( .Seconds * 1000 ),strnpcinfo(0)+"::OnPCLoadMapEvent"; end; } return; } }
  3. p[]p[][p][p it seems the script doesnt work.. i can bring Devilnig / taogunka cards to payon town in the same time.. - script Limited Items -1,{ function LimitItems; function CheckItems; OnInit: // GM Level to Bypass set .GMLevel,3; // Check Every X Seconds set .Seconds,5; // Apply on Which Maps and what Zone No. setarray .DisableMap$, // "<mapname>","<zone number>", // "pvp_n_1-5","0", // "yggdrasil01","1", "yggdrasil02","2", "payon","3", "guild_vs4","4", "pvp_y_5-2","5"; // Initialize Mapflags for( set .i,0; .i < getarraysize( .DisableMap$ ); set .i,.i + 2 ) setmapflag .DisableMap$[.i],mf_loadevent; end; OnPCLoadMapEvent: if( getgmlevel() >= .GMLevel ) end; set @Exceed,0; for( set .@i,0; .@i < getarraysize( .DisableMap$ ); set .@i,.@i + 2 ) if( strcharinfo(3) == .DisableMap$[.@i] ) LimitItems( atoi( .DisableMap$[.@i+1] ) ); end; function LimitItems { switch( getarg(0) ){ // Case <zone>: return CheckItems( <Item>,<Amount>,<Item>,<Amount>,.....,<Item>,<Amount> ); Case 2: return CheckItems( 4302,0 ); Case 3: return CheckItems( 4302,0,4174,0 ); Case 4: return CheckItems( 4302,0 ); Case 5: return CheckItems( 4302,0 ); // Case 3: return CheckItems( 607,5,608,1,4002,1,5022,1 ); // Case 4: return CheckItems( 607,1,608,15,5022,2,7227,10 ); default: debugmes "[NPC : "+strnpcinfo(0)+"] - Invalid Zone : "+getarg(0); break; } return; } function CheckItems { for( set .@i,0; getarg( .@i,0 ); set .@i,.@i + 2 ){ // set .@Limit,1; for( set .@eq,0; .@eq <= 10; set .@eq,.@eq + 1 ) for( set .@slot,0; .@slot <= getequipcardcnt( .@eq ); set .@slot,.@slot + 1 ) if( getequipcardid( .@eq,.@slot ) == getarg(.@i) ) set .@Limit,.@Limit + 1; set .@Limit,.@Limit + countitem( getarg(.@i) ); if( .@Limit > getarg(.@i+1) ){ set @Exceed,1; mes "[ ^FF0000Limit : ^0000FF"+getarg(.@i+1)+"^000000 ] "+getitemname( getarg(.@i) ); } } if( @Exceed ){ mes "Please ensure all the Items above didnt reach the Limit as stated above."; close2; warp "prontera",0,0; deltimer strnpcinfo(0)+"::OnPCLoadMapEvent"; }else{ addtimer ( .Seconds * 1000 ),strnpcinfo(0)+"::OnPCLoadMapEvent"; end; } return; } } } this is my script..
  4. donkeyg

    woe

    thx. may i know hwere is the location the runes spawns?? i cant find it in the script
  5. donkeyg

    woe

    Hi this is the traditional War from xileRO anyone has this cool idea script?
  6. nono.. sorry .. what i was asking is how do i make MAXIMUM they can bring 1 MVP card only into the room? Example: a user will get kick from the room if they are using 1 Tao gunka + 1 Golden thief bug card. (Players are allow to bring only ONE card Either Tao Gunka or Golden Thief bug card into the room. They cant bring BOTH cards into the room) t I want to make it MAXIMUM 1 MVP card can bring in only..
  7. Tested.... still get kick even i got 1 tao gunka card ONLY.. i wan to make it cant bring 2 tao gunka.. maximum 1 tao gnuka.... but why cant?? - script Limited Items -1,{ function LimitItems; function CheckItems; OnInit: // GM Level to Bypass set .GMLevel,3; // Check Every X Seconds set .Seconds,5; // Apply on Which Maps and what Zone No. setarray .DisableMap$, // "<mapname>","<zone number>", // "pvp_n_1-5","0", // "yggdrasil01","1", "guild_vs2","2", "payon","3", "guild_vs4","4", "pvp_y_5-2","5"; // Initialize Mapflags for( set .i,0; .i < getarraysize( .DisableMap$ ); set .i,.i + 2 ) setmapflag .DisableMap$[.i],mf_loadevent; end; OnPCLoadMapEvent: if( getgmlevel() >= .GMLevel ) end; set @Exceed,0; for( set .@i,0; .@i < getarraysize( .DisableMap$ ); set .@i,.@i + 2 ) if( strcharinfo(3) == .DisableMap$[.@i] ) LimitItems( atoi( .DisableMap$[.@i+1] ) ); end; function LimitItems { switch( getarg(0) ){ // Case <zone>: return CheckItems( <Item>,<Amount>,<Item>,<Amount>,.....,<Item>,<Amount> ); Case 2: return CheckItems( 4302,0 ); Case 3: return CheckItems( 4302,0 ); Case 4: return CheckItems( 4302,0 ); Case 5: return CheckItems( 4302,0 ); // Case 3: return CheckItems( 607,5,608,1,4002,1,5022,1 ); // Case 4: return CheckItems( 607,1,608,15,5022,2,7227,10 ); default: debugmes "[NPC : "+strnpcinfo(0)+"] - Invalid Zone : "+getarg(0); break; } return; } function CheckItems { for( set .@i,0; getarg( .@i,0 ); set .@i,.@i + 2 ){ set .@Limit,1; for( set .@eq,0; .@eq <= 10; set .@eq,.@eq + 1 ) for( set .@slot,0; .@slot <= getequipcardcnt( .@eq ); set .@slot,.@slot + 1 ) if( getequipcardid( .@eq,.@slot ) == getarg(.@i) ) set .@Limit,.@Limit + 1; set .@Limit,.@Limit + countitem( getarg(.@i) ); if( .@Limit > getarg(.@i+1) ){ set @Exceed,1; mes "[ ^FF0000Limit : ^0000FF"+getarg(.@i+1)+"^000000 ] "+getitemname( getarg(.@i) ); } } if( @Exceed ){ mes "Please ensure all the Items above didnt reach the Limit as stated above."; close2; warp "prontera",0,0; deltimer strnpcinfo(0)+"::OnPCLoadMapEvent"; }else{ addtimer ( .Seconds * 1000 ),strnpcinfo(0)+"::OnPCLoadMapEvent"; end; } return; } } } thi sis my script
  8. ___ ok, but how do i make immune ? attack should miss if user has 100% resist of element i want to make if user has 100% water resist.. he wont get damage from water elements it should be miss yes exactly what i am asking in pre-renewal.. but seeems like no 1 can fix it
  9. how do i make only allow maximjum 1 MVP card in a map ? (Means u cant bring more than 2 MVP cards into the map) MAP: Guild_vs2
  10. does demi human reststance cards stacked with water/fire/earth/wind resistances?
  11. Case 0: return CheckItems( 607,0,608,0,2742,0,2541,0,4241,0,610,0,607,0,608,0,4174,0,4047,0,4054,0,4169,0,4236,0,4359,0,4425,0,4372,0,4147,0,4145,0,4168,0,4386,0,4142,0,4134,0,4137,0,4123,0,4330,0,4441,0,4324,0,4408,0,4128,0,4363,0,4365,0,4430,0,4263,0,4403,0,4318,0,4419,0,4376,0,4357,0,4276,0,4146,0,4132,0,4131,0,4143,0,4135,0,4144,0,4148,0,4121,0,4342,0,4367,0,4302,0,4305,0,4407,0,4374,0,4361,0,4352,0 ); Case 1: return CheckItems( 13017,0,1230,0,4236,0,4359,0,4425,0,4372,0,4147,0,4145,0,4168,0,4386,0,4142,0,4134,0,4137,0,4123,0,4330,0,4441,0,4324,0,4408,0,4128,0,4363,0,4365,0,4430,0 ); this is my function script... assume when u go in to a place that restrict those item above th elist... u will be auto warped out back to prontera... so what am i requesting is can i make it able to use but not MORE THAN 2 cards allowed in the place?
  12. anyone know hwo the pre renewal 100% resistance reduction works?
  13. what i meant was the first time i tried to talk to the npc.. it doesnt even add my weight... and i try it till 10 times.. they npc said i am done.. but i check my weight doesnt increase at all....
  14. // The rate adjustment for the MVP items that the MVP gets directly in their inventory item_rate_mvp: 1000 item_drop_mvp_min: 1000 item_drop_mvp_max: 10000 my battleconf why its showing 0%? the mob_db is fine.
  15. anyone? bumppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp
  16. https://github.com/rathena/rathena/issues/343 i searched about this problem, how do i apply it on the script.. which part need to remove and add? anyone has a completed without any bugs about this script? need this very much...appreciate your help thankx why no 1 is willing to help me?
  17. In renewal, SOURCE: https://rathena.org/board/tracker/issue-9030-100-immune-to-an-element/ how about pre renewal? anyone~!?
  18. i was wondering can i make the KAFRA NPC save my character's savepoint where i am standing there? moc_para01,15,183,6 script Kafra Employee::kaf_pronteewqraee 117,{ cutin "kafra_01",2; callfunc "F_KafSet"; mes "[Kafra Employee]"; mes "Welcome to the"; mes "Kafra Corporation."; mes "The Kafra services"; mes "are always on your side."; mes "How may I assist you?"; callfunc "F_Kafra",5,0,0,40,800; savepoint "moc_para01",30,186; callfunc "F_KafEnd",0,1,"in the city of Prontera"; }
×
×
  • Create New...