Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. Erm...after i looking this again...i just wonder i made a mistake..... we cant have more than 1 rand( value ) inside the same condition checking ...otherwise...this will spoil your rate checking... Well, i try make it simple this time... set .Random,rand( 1000 ); if( .Random <= 100 ) getitem 607,1; else if( .Random <= 150 && .Random > 100 ) getitem 607,2; else if( .Random <= 200 && .Random > 150 ) getitem 607,2; else if( .Random <= 250 && .Random > 200 ) getitem 607,2; else getitem 512,1; In this case... set .Random,rand( 1000 ); just like what i told you in previous posts.. first and foremost, this will generate a Number Randomly from 0 ~ 999 else if( .Random <= 150 && .Random > 100 ) getitem 607,2; else if( .Random <= 200 && .Random > 150 ) getitem 607,2; else if( .Random <= 250 && .Random > 200 ) getitem 607,2; Here...we will check for the Probability of items gaining... For Example the 1st line : else if( .Random <= 150 && .Random > 100 ) getitem 607,2; A User/Player will gain the Items once the .Random that generated is in the range of 101 ~ 150 else if( .Random <= 200 && .Random > 150 ) getitem 607,2; A User/Player will gain the Items once the .Random that generated is in the range of 151 ~ 200 else if( .Random <= 250 && .Random > 200 ) getitem 607,2; A User/Player will gain the Items once the .Random that generated is in the range of 201 ~ 250 else getitem 512,1; This... will only RUN when all the above Probability not matched / .Random are not inside the range... Well, i guess i will stop explaining after this posts right here...since this topic is Script Release Section...not Script Support Section. If you still have any Enquiries , please open a new thread in Script Support Section, otherwise i might be targeted by Mod for Flooding this Topic...
  2. try this.. find this change to this OnSun0900: set $BattleStarted,1; Not sure is this the correct arrangement.. ( never used this type before ) Other Option... OnClock<hour><minute>: OnMinute<minute>: OnHour<hour>: On<weekday><hour><minute>: OnDay<month><day>: This will execute when the server clock hits the specified date or time. Hours and minutes are given in military time. ('0105' will mean 01:05 AM). Weekdays are Sun,Mon,Tue,Wed,Thu,Fri,Sat. Months are 01 to 12, days are 01 to 31. Remember the zero.
  3. LOL....why you go use a Complicated Zeny Shop Script when there is just a Simple way to do it... A Simple Normal Shop would fullfill your request on this.... since you just want to sell those items using ZENY..
  4. if you are using the Official WOE System Script.. /npc/guild/agit_template.txt Check here...and Remove all Monster Summoning Line.. OnRecvCastle: RequestGuildInfo GetCastleData(strnpcinfo(2),1); // Spawn Monsters if the castle is empty. set .@GID, GetCastleData(strnpcinfo(2),1); if (.@GID == 0) { killmonsterall strnpcinfo(2); if (compare(strnpcinfo(2),"aldeg")) { // Normal Spawns monster strnpcinfo(2),0,0,"Evil Druid",1117,10; monster strnpcinfo(2),0,0,"Khalitzburg",1132,4; monster strnpcinfo(2),0,0,"Abysmal Knight",1219,2; monster strnpcinfo(2),0,0,"Executioner",1205,1; monster strnpcinfo(2),0,0,"Penomena",1216,10; monster strnpcinfo(2),0,0,"Alarm",1193,18; monster strnpcinfo(2),0,0,"Clock",1269,9; monster strnpcinfo(2),0,0,"Raydric Archer",1276,7; monster strnpcinfo(2),0,0,"Wanderer",1208,3; monster strnpcinfo(2),0,0,"Alice",1275,1; monster strnpcinfo(2),0,0,"Bloody Knight",1268,1; monster strnpcinfo(2),0,0,"Dark Lord",1272,1; // Set Emperium room spawn coordinates and spawn monsters. if (strnpcinfo(2) == "aldeg_cas01") { setarray .@emproom[0],216,23; } else if (strnpcinfo(2) == "aldeg_cas02") { setarray .@emproom[0],213,23; } else if (strnpcinfo(2) == "aldeg_cas03") { setarray .@emproom[0],205,31; } else if (strnpcinfo(2) == "aldeg_cas04") { setarray .@emproom[0],36,217; } else if (strnpcinfo(2) == "aldeg_cas05") { setarray .@emproom[0],27,101; } monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Dark Lord",1272,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Tower Keeper",1270,4; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Bloody Knight",1268,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Abysmal Knight",1219,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5; } else if (compare(strnpcinfo(2),"gefg")) { // Normal Spawns monster strnpcinfo(2),0,0,"Evil Druid",1117,10; monster strnpcinfo(2),0,0,"Wind Ghost",1263,11; monster strnpcinfo(2),0,0,"Bathory",1102,10; monster strnpcinfo(2),0,0,"Jakk",1130,10; monster strnpcinfo(2),0,0,"Marduk",1140,20; monster strnpcinfo(2),0,0,"Raydric",1163,9; monster strnpcinfo(2),0,0,"Alice",1275,1; monster strnpcinfo(2),0,0,"Abysmal Knight",1219,1; monster strnpcinfo(2),0,0,"Moonlight Flower",1150,1; monster strnpcinfo(2),0,0,"Phreeoni",1159,1; // Set Emperium room spawn coordinates and spawn monsters. if (strnpcinfo(2) == "gefg_cas01") { setarray .@emproom[0],197,181; } else if (strnpcinfo(2) == "gefg_cas02") { setarray .@emproom[0],176,178; } else if (strnpcinfo(2) == "gefg_cas03") { setarray .@emproom[0],244,166; } else if (strnpcinfo(2) == "gefg_cas04") { setarray .@emproom[0],174,177; } else if (strnpcinfo(2) == "gefg_cas05") { setarray .@emproom[0],194,184; } monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Mysteltainn",1203,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Orc Hero",1087,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"High Orc",1213,10; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Orc Archer",1189,10; } else if (compare(strnpcinfo(2),"payg")) { // Normal Spawns monster strnpcinfo(2),0,0,"Greatest General",1277,9; monster strnpcinfo(2),0,0,"Wanderer",1208,10; monster strnpcinfo(2),0,0,"Mutant Dragonoid",1262,5; monster strnpcinfo(2),0,0,"Bathory",1102,5; monster strnpcinfo(2),0,0,"Moonlight Flower",1150,1; monster strnpcinfo(2),0,0,"Eddga",1115,1; monster strnpcinfo(2),0,0,"Horong",1129,11; monster strnpcinfo(2),0,0,"Raydric Archer",1276,5; monster strnpcinfo(2),0,0,"Kobold Archer",1282,4; monster strnpcinfo(2),0,0,"Gargoyle",1253,5; // Set Emperium room spawn coordinates and spawn monsters. if (strnpcinfo(2) == "payg_cas01") { setarray .@emproom[0],139,139; } else if (strnpcinfo(2) == "payg_cas02") { setarray .@emproom[0],38,25; } else if (strnpcinfo(2) == "payg_cas03") { setarray .@emproom[0],268,264; } else if (strnpcinfo(2) == "payg_cas04") { setarray .@emproom[0],270,28; } else if (strnpcinfo(2) == "payg_cas05") { setarray .@emproom[0],30,30; } monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Moonlight Flower",1150,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Eddga",1115,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Wanderer",1208,6; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5; } else if (compare(strnpcinfo(2),"prtg")) { // Normal Spawns monster strnpcinfo(2),0,0,"Raydric",1163,1; monster strnpcinfo(2),0,0,"Khalitzburg",1132,10; monster strnpcinfo(2),0,0,"Abysmal Knight",1219,5; monster strnpcinfo(2),0,0,"Bloody Knight",1268,5; monster strnpcinfo(2),0,0,"Stormy Knight",1251,1; monster strnpcinfo(2),0,0,"Hatii",1252,1; monster strnpcinfo(2),0,0,"Raydric Archer",1276,5; monster strnpcinfo(2),0,0,"Gryphon",1259,2; monster strnpcinfo(2),0,0,"Chimera",1283,3; monster strnpcinfo(2),0,0,"Alice",1275,1; monster strnpcinfo(2),0,0,"Zealotus",1200,1; // Set Emperium room spawn coordinates and spawn monsters. if (strnpcinfo(2) == "prtg_cas01") { setarray .@emproom[0],197,197; } else if (strnpcinfo(2) == "prtg_cas02") { setarray .@emproom[0],157,174; } else if (strnpcinfo(2) == "prtg_cas03") { setarray .@emproom[0],16,220; } else if (strnpcinfo(2) == "prtg_cas04") { setarray .@emproom[0],291,14; } else if (strnpcinfo(2) == "prtg_cas05") { setarray .@emproom[0],266,266; } monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Knight",1268,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Master",1251,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Hatii",1252,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Guardian Knight",1219,1; monster strnpcinfo(2),.@emproom[0],.@emproom[1],"Raydric Archer",1276,5; } If you are using Custom WOE Setter like GM Xeon WOE Setter 3 there is a GM Option for Disable Monster Spawn during WOE.
  5. Emistry

    This or That?

    Dessert Skype or MSN ?
  6. he know it is only for PK Server only.....and his server....is not PK Server i guess.....
  7. How about this..xD @judas. just post your Youtube link..it will auto embed it... or use this [media]http://www.youtube.com/watch?v=3rI85jH3F4U[/media]
  8. Well, it is not hard actually... just need to edit some minor things.... In this case...just edit the Number 250 that occur in these 2 lines...which is the monster spawn number for events. monster .Map$,0,0,"Goblin",1258,250,"Invasion NPC::OnMyMobDead"; set .mobs_left, 250; Well...just try improve yours skills.... by making your script more user-friendly.. make it easier to configure by users, even though they are newbie.....
  9. I agree for Remove the TXT DBs.... since we are going to move to SQL based Emulator.... then...TXT is useless already....coz it is not going to be "Support" soon.. All DB will be in SQL then...as the emulator run in SQL... So...REMOVE it xD
  10. Based on your post, i believe you should provide your Script here....so that we can help you solve your problems based on your script.... Otherwise it will be totally a "Different" script once we create a new one here.... However, using NPC Script wont be able to prevent them from Attacking the Newbie... but it just able to help in "Stop the PVP Counter" Stuffs....
  11. Emistry

    This or That?

    Ice Cream Winter or Spring ?
  12. Welcome Badman.....O.O
  13. Emistry

    This or That?

    Eating Video or Audio Recording ??
  14. Emistry

    This or That?

    IPB Instant Messaging or Email ?
  15. try this..and edit the Buff Lists at your own... prontera,155,181,5 script Sample 757,{ set .Guild,getcastledata( "prtg_cas01",1 ); if( getcharid(2) == .Guild ){ mes "Total Earning : "+$Earn+" Zeny."; } mes "The Heal Cost will be paid to the Winning Guild."; mes "Heal - 10k"; mes "Buff 1 - 100k"; mes "Buff 2 - 200k"; next; switch( select( "Heal", "Buff 1", "Buff 2", ( strcharinfo(0) != getguildmaster( .Guild ) )?"":"[^0000FFMaster^000000] Claim Earn" )){ Case 1: if( Zeny < 10000 ){ mes "You didnt have enough 10k Zeny."; }else{ mes "Done"; percentheal 100,100; // Heal set Zeny,Zeny - 10000; set $Earn,$Earn + 10000; } close; Case 2: if( Zeny < 100000 ){ mes "You didnt have enough 100k Zeny."; }else{ mes "Done"; percentheal 100,100; // Buff 1 set Zeny,Zeny - 100000; set $Earn,$Earn + 100000; } close; Case 3: if( Zeny < 200000 ){ mes "You didnt have enough 200k Zeny."; }else{ mes "Done"; percentheal 100,100; // Buff 2 set Zeny,Zeny - 200000; set $Earn,$Earn + 200000; } close; Case 4: mes "Total Earning : "+$Earn+" Zeny."; if( select("Claim It:Cancel") == 2 ) close; mes "How much you want to claim ?"; do{ input @Amount,0,$Earn; if( !@Amount ) close; if( ( Zeny + @Amount ) > 1000000000 ) mes "Limit Exceed..."; }while( ( Zeny + @Amount ) > 1000000000 ); mes "Gained "+@Amount+" Zeny."; set Zeny,Zeny + @Amount; set $Earn,$Earn - @Amount; close; } }
  16. Emistry

    This or That?

    Rune Knight Renewal Mechanic or Old Mechanic ?
  17. Well...actually he is looking for a NPC with Countdown Chatroom title above the NPC when the users has entered the room... prontera,155,181,5 script Sample 757,{ if( getmapusers( .Map$ ) ){ npctalk "You cant go in right now. There is someone inside."; }else{ announce "["+strcharinfo(0)+"] entered Gold Room.",0; warp .Map$,0,0; initnpctimer; } end; OnInit: set .Map$,"guild_vs5"; monster .Map$,0,0,"Gold",1002,100,strnpcinfo(0)+"::OnMobKill"; while( 1 ){ delwaitingroom; if( getmapusers( .Map$ ) ){ waitingroom "Countdown "+( 60 - ( getnpctimer(0) / 1000 ) )+" Seconds",0; } sleep 1000; } end; OnMobKill: getitem 969,1; monster .Map$,0,0,"Gold",1002,1,strnpcinfo(0)+"::OnMobKill"; end; OnTimer60000: mapannounce .Map$,"Time's Up !! You will be warped out right now..",0; mapwarp .Map$,"prontera",155,181; end; }
  18. Emistry

    This or That?

    Ice Cream Coke or Milk
  19. Emistry

    This or That?

    Google Online Game or Offline Game
×
×
  • Create New...