Jump to content

Newbie Scripter

Members
  • Posts

    21
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    PH
  • Server
    FRO

Recent Profile Visitors

863 profile views

Newbie Scripter's Achievements

Poring

Poring (1/15)

0

Reputation

  1. how do i make an npc move to random towns every 2 hours? can anyone give me a sample? please make it eathena compatible thanks!
  2. function script uchallengehg { if(getarg(1) == 9) { //Requirement Check if(countitem2(5012,1,9,0,0,0,0,0) < 3) { mes " Sorry, but you haven't brought the complete set of PH.D Hats"; close;} mes "Thank you for your help!!"; getitem getarg(0), 1; delitem2 5012,3,1,9,0,0,0,0,0,getcharid(3); getitem 14232,5; //5x Yggdrasil Berry Box (10) getitem 12103,5; //5x Bloody Branch getitem 12106,1; //1x Jewelry Box getitem 12186,1; //1x Old Red Box close; } else if(getarg(1) == 8) { //Requirement Check if(countitem2(5012,1,8,0,0,0,0,0) < 4) { mes " Sorry, but you haven't brought the complete set of PH.D Hats"; close;} mes "Thank you for your help!!"; getitem getarg(0), 1; delitem2 5012,4,1,8,0,0,0,0,0,getcharid(3); getitem 14232,2; //2x Yggdrasil Berry Box (10) getitem 12103,2; //2x Bloody Branch close; } else if(getarg(1) == 7) { //Requirement Check if(countitem2(5012,1,7,0,0,0,0,0) < 5) { mes " Sorry, but you haven't brought the complete set of PH.D Hats"; close;} mes "Thank you for your help!!"; getitem getarg(0), 1; delitem2 5012,5,1,7,0,0,0,0,0,getcharid(3); close; } } - shop phdhat 86,5012:10000000,13889:10000000 yuno_in02,41,63,6 script Academy Merchant 813,{ set .npcname$, "[ ^008800Hubert^000000 ]"; //HEADGEAR REWARD LIST setarray @HGLists[0],5464,5654,5565,5495,5529,5420,5786,5395,5667; mes .npcname$; mes "Hello there!"; mes "I'm the academy merchant at the Juno Sage Academy."; mes "We are currently looking for adventurers who will help the academy..."; next; mes .npcname$; mes "...in making superior quality PH.D hats for the upcoming graduation"; mes "of new sages here."; mes "Would you like to help us?"; next; menu "Of course!",-,"I'm busy right now",EXIT; mes .npcname$; mes "We are currently providing PH.D hats to adventurers who would like to help."; next; mes .npcname$; mes "If you already have the PH.D hats, I would exchange them to great rewards!"; next; menu "Can I have some PH.D hats?",BUY,"I already have superior quality PH.D hats.",EXCHANGE; EXCHANGE: mes .npcname$; mes "You can trade PH.D hats with the following quantity and refinement"; next; set .@refine, 6 + select("5x +7 Ph.D Hats","4x +8 Ph.D Hats","3x +9 Ph.D Hats"); setarray .@amount[7],5,4,3; // Required number of Hats if(countitem2(5012,1,.@refine,0,0,0,0,0) >= .@amount[.@refine]){ mes .npcname$; mes "Thank you for bringing them! I have some super cool rewards for you!"; next; mes .npcname$; mes "Which of the following headgear would you like to have?"; next; for( set .@i,0; .@i < getarraysize(@HGLists); set .@i,.@i + 1 ) set .@Menu$,.@Menu$ + getitemname(@HGLists[.@i])+ ":"; set .@ChosenHG, select( .@Menu$ ); set .@HG, .@ChosenHG - 1 ; callfunc("uchallengehg", @HGLists[.@HG], .@refine); end; } mes .npcname$; mes "Sorry, but you haven't brought the complete set of PH.D Hats"; close; EXIT: mes .npcname$; mes "I hope you will return to help us."; close; BUY: mes .npcname$; mes "Each PH.D hat costs 10,000,000 zeny."; callshop "phdhat",0; } I'd like it to have these features
  3. Any suggestions on how to work around with this script? or a fix maybe so what It could work on EA? I really appreciate it. thanks!
  4. Yes i know what the error is. I'd like to know what should be the solution I can't work with it. Im using Eathena
  5. function randomString; if( .status == 1 ){ mes "Event is preparing...try again in few seconds."; }else if( .status == 2 ){ if( @failed > gettimetick(1) ){ mes "You failed this round. You got only 1 chances for each round."; close; } mes "Enter:"; mes "^FF0000"+.string$+"^000000"; mes " "; mes "You got "+.round_delay+" seconds to answer."; input .@input$; if( .status == 2 && .string$ != "" && .@input$ == .string$ ) { .string$ = ""; .status = 1; mes "Gratz you won..."; npctalk strcharinfo(0)+" just won the game with "+getnpctimer(0)+" miliseconds.."; stopnpctimer; Here's the error
  6. Prontera,124,168,5 script Facts Event 917,{ end; function DefineQuestion; function GetQuestion; function GetAnswer; OnMinute20: OnMinute42: OnMinute00: announce "The Fact Event will begin in 3 minutes.",bc_all | bc_blue; announce "The Event is being held in Event Room. Please use custom warper to go there.",bc_all | bc_blue; sleep 0 announce "The Fact Event will begin in 2 minutes.",bc_all | bc_blue; announce "The Event is being held in Event Room. Please use custom warper to go there.",bc_all | bc_blue; sleep 0000; announce "The Fact Event will begin 1 minute.",bc_all | bc_blue; announce "The Event is being held in Event Room. Please use custom warper to go there.",bc_all | bc_blue; sleep 0000; announce "The Fact Event has begun!",bc_all | bc_blue; announce "The Event is being held in Event Room. Please use custom warper to go there.",bc_all | bc_blue; L_loop: do set .@i, rand( .numQuestions ); // Randomly picks a fact. while( .Q_session & 1 << .@i && .Q_session && .count < .numQuestions ); set .Q_session, .Q_session | 1 << .@i;// max 32 questions if( !.count ) { npctalk "Please answer all my question about fact:"; sleep 5; npctalk "If your answer is true, you will obtain some YggBerry!"; } .count++; sleep 4000; npctalk "Fact: " + GetQuestion(.@i); defpattern 1, "([^:]+):.*\\s"+ GetAnswer( .@i ) +"(.*)", "Right"; activatepset 1; initnpctimer; end; OnTimer30000: npctalk "Sorry, You take so long time. GOOGLE IT LOL to find the answer."; goto L_continue; Right: npctalk "The answer is true. Good job man !!"; getitem .rewarditem, rand( 1,10 ); // Randomly picks from 1 to 10. L_continue: deletepset 1; stopnpctimer; if( .count < .max_questions ) goto L_loop; // loop 10 questions .count = 0; // end of event .Q_session = 0; npctalk "End of the event. Thanks for participating in this event ^^"; end; function DefineQuestion { set .@a, .numQuestions % 128; set .@b, .numQuestions / 128; setd(".question_" + .@a + "$[" + .@b + "]", getarg(0)); setd(".answer_" + .@a + "$[" + .@b + "]", getarg(1)); set .numQuestions, .numQuestions + 1; return; } function GetQuestion { return getd(".question_" + (getarg(0) % 128) + "$[" + (getarg(0) / 128) + "]"); } function GetAnswer { return getd(".answer_" + (getarg(0) % 128) + "$[" + (getarg(0) / 128) + "]"); } OnInit: set .EventON, 0; set .rewarditem, 7915; //Ygg berry~ .max_questions = 10; // 10 questions if more than 10 questions are defined DefineQuestion("Do you know that The _____ bear is not really a bear, but is really related to the kangaroo and the wombat.","Koala"); DefineQuestion("Do you know that The word -_____- comes from the Greek word -kometes- meaning long hair and referring to the tail ","comet"); DefineQuestion("Do you know that Before air conditioning was invented, white cotton __________ were put on furniture to keep the air cool. ","slipcovers"); DefineQuestion("Do you know that Instead of a Birthday Cake, many Russian children are given a Birthday ___ ","Pie"); DefineQuestion("Do you know that Colgate faced a big obstacle marketing toothpaste in Spanish speaking countries. _______ translates into the command -go hang yourself.- ","Colgate"); DefineQuestion("Do you know that The ________ cartoon was the first thirty-minute cartoon to be aired during prime time ","Flintstones"); DefineQuestion("Do you know that The abbreviation ____ for the word Christmas is of Greek origin. ","Xmas"); DefineQuestion("Do you know that ____ has more English speakers than the United States ","China"); DefineQuestion("Do you know that When _____ Elizabeth I of England died she owned over 3,000 gowns ","Queen"); DefineQuestion("Do you know that In one day 34,000 ______ die from causes that are related to poverty and hunger ","children"); DefineQuestion("Do you know that The only 15 letter word that can be spelled without repeating a letter is [__________.] ","uncopyrightable"); DefineQuestion("Do you know that Some _____ worms will eat themselves if they cannot find food. This type of worm can still survive after eating up to 95% of its body weight ","Ribbon"); DefineQuestion("Do you know that There is an area located off the south-eastern Atlantic coast of the United States called the -Bermuda _______.","Triangle"); DefineQuestion("Do you know that in ____, a wrestling match in Stockholm between Finn Alfred Asikainen and Russian Martin Klein lasted more than 11 hours. Klein eventually won.","1912"); DefineQuestion("Do you know that ______ are considered apes, not monkeys. The way to distinguish between an ape and a monkey is that apes do not have tails ","Gorillas"); DefineQuestion("Do you know that _____ Lee was so fast, that they actually had to slow a film down so you could see his moves. That is the opposite of the normal","Bruce"); DefineQuestion("Do you know that A 27 year old heir to a _____ empire was handed a ticket for 116,000 pounds for driving at 80 km/hr in a 40 km/hr zone.","sausage"); DefineQuestion("Do you know that The first known American novelist to hand in a manuscript that was typed was ___ ___. ","Mark Twain"); DefineQuestion("Do you know that In Belgium, there is a museum that is just for _________ ","strawberries"); DefineQuestion("Do you know that A ______ with two mouths, two sets of teeth and two tongues was caught by Bob Bateman of Canada.","salmon"); DefineQuestion("Do you know that ___________ x 111,111,111 = 12,345,678,987,654,321 ","111,111,111"); DefineQuestion("Do you know that Pepsi originally contained ______, (the same stuff in pepcid AC) thus the name ","pepsin"); DefineQuestion("Do you know that Annually, ____ that occur at home kill more Americans than all natural disasters combined ","fires"); DefineQuestion("Do you know that The song -_____ ________- brings in about $2 million in licensing revenue to Warner Communications who hold the copyright to the song ","Happy Birthday"); DefineQuestion("Do you know that You can send a postcard from ____. There is a small town located in the Cayman Islands called -_____.-","Hell"); DefineQuestion("Do you know that In the movie -_____- , 300,000 extras appeared in the funeral scene. Of the 300,000, approximately 100,000 received a small fee.","Gandhi"); DefineQuestion("Do you know that In ____, a Japanese artist, Tadahiko Ogawa, made a copy of the Mona Lisa completely out of ordinary toast ","1983"); DefineQuestion("Do you know that Over one million ___ ____ were sold in 1975, makine Gary Dahl, of Los Gatos, California, a millionaire. ","Pet Rocks"); DefineQuestion("Do you know that The name ____ was made up for the book -Peter Pan.- ","Wendy"); DefineQuestion("Do you know that The first ________ call from the White House was from Rutherford Hayes to Alexander Graham Bell ","telephone"); DefineQuestion("Do you know that The reason _________ have circular stairways is from the days when the engines were pulled by horses.","firehouses"); DefineQuestion("Do you know that By recycling just one glass ______, the amount of energy that is being saved is enough to light a 100 watt bulb for four hours","bottle"); DefineQuestion("Do you know that One _____ vine can produce about 20 to 30 glasses of wine ","grape"); DefineQuestion("Do you know that Some _____ have been known to put ants into their feathers because the ants squirt formic acid, which kills parasites ","birds"); DefineQuestion("Do you know that The popular chocolate bar -____ Musketeers- got its name because when it was first introduced in 1932 there were three individual bars.","Three"); DefineQuestion("Do you know that John Van Wormer invented paper milk _____ after dropping a bottle of milk one morning.","cartons"); DefineQuestion("Do you know that ____ beef got its name because it's beef was preserved with pellets of salt that were the size of corn kernels.","Corned"); DefineQuestion("Do you know that A ____ year old boy was the first person to survive the Horeshoe Falls (Niagara Falls) in just a life jacke","seven"); DefineQuestion("Do you know that The reason why ____ gum is pink is because the inventor only had pink colouring left.","bubble"); DefineQuestion("Do you know that Ninety-nine percent of ______ sold in the United States are for the sole purpose of decoration ","pumpkins"); DefineQuestion("David McConnell started the California Perfume Company in 1886. Today the company is known as _____, ","Avon"); DefineQuestion("Do you know that The most expensive perfume in the world is _____ VI, which was made by Arthur Burnham.","Parfum"); DefineQuestion("The female ____ cannot lay eggs if she is alone. she must be able to see another _____.","pigeon"); DefineQuestion("In ______, you can be fined for not using a shopping basket at a grocery store!","Holland"); DefineQuestion("In West ______ if you run over an animal, you can legally take it home and cook it for dinner!","Virginia"); DefineQuestion("It is _____ to purchase or consume Jack Daniel's Whiskey in the town in which it is produced!","illegal"); DefineQuestion("The scientific term for the common _____ is lycopersicon lycopersicum, which means wolf peach.","tomato"); DefineQuestion("The oldest almost-complete manuscript of the Bible still existing is the Codex Vaticanus, now held in the Vatican ______.","library"); DefineQuestion("The word ____ appears 1855 times in the Bible.","Lord"); DefineQuestion("The ____ is the first bird mention in the Bible. It appears in Genesis 8:7, when it is sent out from the ark by Noah to see if the flood waters have abated.","raven"); DefineQuestion("Summer on ___ lasts for 21 years , but so does winter. ","Uranus"); DefineQuestion("Hurricanes, tornadoes and bigger bodies of water always go _____ in the Southern Hemisphere and counter______ in the Northern Hemisphere.","clockwise"); if( .numQuestions < .max_questions ) .max_questions = .numQuestions; end; } It doesn't work and that i want it to be answered near the npc like the disguise event.
  7. HI i need help on this script of mine prontera,183,213,5 script Monster Hunter 483,{ // monster_hunt_deny = 0; if ( .start == 2 ) { mes "Sorry somebody already started"; close; } if ( .start == 0 ) { mes "^FF0000 Talk to the Hand ^000000"; close; } mes "open"; next; select "register"; if ( getcharid(1) == 0 ) { mes "you must be in a party"; close; } if ( getpartyleader( getcharid(1), 2 ) != getcharid(0) ) { mes "you are not party leader"; close; } getpartymember getcharid(1), 1; if ( $@partymembercount < .partysize ) { mes "you must form a party of "+ .partysize; close; } getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) .@count++; if ( .@count < .partysize ) { mes "you must have "+ .partysize +" party members online"; close; } .@origin = getcharid(3); for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( baselevel < .baselevel || joblevel < .joblevel ) { .@name$ = strcharinfo(0); attachrid .@origin; mes .@name$ +" does not meet the level requirement"; close; } if ( monster_hunt_deny + .deny > gettimetick(2) ) { .@name$ = strcharinfo(0); attachrid .@origin; mes .@name$ +" are still under 5 min cooldown"; close; } } } for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; monster_hunt_deny = gettimetick(2); } } warpparty "pvp_n_1-3", 100, 109, getcharid(1); monster "this", -1,-1, "--ja--", 1002, 1, strnpcinfo(3)+"::Onmobdead"; announce strcharinfo(1) +" has started monster hunting", 0; .start = 2; .partyid = getcharid(1); close; Onmobdead: announce strcharinfo(1) +" has completed monster hunting", 0; getpartymember getcharid(1), 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) getitem 7227, 5, $@partymemberaid[.@i]; warpparty "SavePointAll", 0,0, .partyid; .start = 0; .partyid = 0; end; //OnWhisperGlobal: OnMinute00: if ( .start == 2 ) warpparty "SavePointAll", 0,0, .partyid; announce "monster hunting is open", 0; .start = 1; end; OnPCDieEvent: OnPCLogoutEvent: if ( strcharinfo(3) != "pvp_n_1-3" ) end; announce strcharinfo(1) +" has failed monster hunting", 0; warpparty "SavePointAll", 0,0, .partyid; .start = 1; .partyid = 0; end; OnInit: .deny = 300; // 300 seconds to deny players going in again .partysize = 3; // 10 player members needed to start .baselevel = 99; .joblevel = 1; // level requirement end; I want it to broadcast the event every 4 hours and also to broadcast what party is going in, also i want it to take 5 players on a party instead of 3 also to make 5 levels of it so that they can battle more powerful mobs. after they finish it i want an npc to appear on the middle to teleport them back to prontera. also i want only 5 mobs per level to drop 2 tcg ea. one more thing is that only 2 parties can enter the event they have to be split on an another map doing the same thing. if 1 member dies or logs off then all the other members will be kicked off the map.
  8. It doesn't end the conversation when i pick a quest and it just goes all the way upto the last case on the switch . its suppose to be a quest npc's im still kinda new in scripting im sorry. i just need a bit of a help to make this work. been at it for 6 hours still got no answers. Sorry again. sec_in01,94,156,4 script Gabrielle 485,{ mes "[ ^F660ABGabrielle^000000 ]"; mes "Hi ^F4123F"+strcharinfo(0)+"^000000"; mes "I can trade several beautiful scarfs to you"; mes "Do you want to know what i have in store?"; next; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } mes "I have a collection of special magical Scarfs"; next; switch(select("^F4123FBlue Scarf^000000:^F4123FCyan Scarf^000000:^F4123FBlack Scarf^000000:^F4123FRed Scarf^000000:^F4123FPink Scarf^000000:^F4123FGreen Scarf^000000:^F4123FExit^000000")) { case 1: mes "[ ^F660ABGabrielle^000000 ]"; mes "A blue scarf ei? reminds of GM-Fantomex she like's to wear it everytime. Anyway"; mes "Would you like one?"; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } next; Emotion e_ho; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you 1 ^0000FFBlue Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Cobalt Blue Dyestuff"; mes "10 White Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "10 Million Zeny"; next; mes "What do you say?"; next; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(7227) < 1) if(countitem(2236) < 5) if(countitem(538) < 500) if(countitem(529) < 500) if(countitem(978) < 10) if(countitem(982) < 10) if(countitem(7267) < 100) if(countitem(7047) < 100) if(Zeny < 10000000) { mes "[^FF00FFGabbriele^000000]"; mes "Oh, so you did it !"; mes "Congratulations Here's your gift."; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 978,10; delitem 982,10; delitem 7267,100; delitem 7047,100; set Zeny, Zeny - 10000000; getitem 21290,1; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 2: mes "[ ^F660ABGabrielle^000000 ]"; mes "A Cyan scarf ei? reminds of GM-Pentium she like's to wear it everytime. Anyway"; mes "Would you like one?"; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } next; Emotion e_ho; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you 1 ^0000FFCyan Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Cobalt Blue Dyestuff"; mes "10 Dark Green Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "10 Million Zeny"; mes "What do you say?"; next; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(7227) < 1) if(countitem(2236) < 5) if(countitem(538) < 500) if(countitem(529) < 500) if(countitem(978) < 10) if(countitem(979) < 10) if(countitem(7267) < 100) if(countitem(7047) < 100) if(Zeny < 10000000) { mes "[^FF00FFGabbriele^000000]"; mes "Oh, so you did it !"; mes "Congratulations Here's your gift."; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 978,10; delitem 979,10; delitem 7267,100; delitem 7047,100; set Zeny, Zeny - 10000000; getitem 21337,1; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 3: mes "[ ^F660ABGabrielle^000000 ]"; mes "A black scarf ei? reminds of GM-Light she like's to wear it everytime. Anyway"; mes "Would you like one?"; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } next; Emotion e_ho; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you 1 ^0000FFBlack Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you"; mes "1 ^0000FFBlack Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Black Dyestuff"; mes "10 White Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "10 Million Zeny"; mes "What do you say?"; next; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(7227) < 1) if(countitem(2236) < 5) if(countitem(538) < 500) if(countitem(529) < 500) if(countitem(982) < 10) if(countitem(983) < 10) if(countitem(7267) < 100) if(countitem(7047) < 100) if(Zeny < 10000000) { mes "[^FF00FFGabbriele^000000]"; mes "Oh, so you did it !"; mes "Congratulations Here's your gift."; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 983,10; delitem 982,10; delitem 7267,100; delitem 7047,100; set Zeny, Zeny - 10000000; getitem 21288,1; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 4: mes "[ ^F660ABGabrielle^000000 ]"; mes "A Red scarf ei? reminds of Bear and Panda they like's to wear it everytime. Anyway"; mes "Would you like one?"; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } next; Emotion e_ho; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you 1 ^0000FFRed Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you"; mes "1 ^0000FFBlue Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Orange Dyestuff"; mes "10 Lemon Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "10 Million Zeny"; mes "What do you say?"; next; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(7227) < 1) if(countitem(2236) < 5) if(countitem(538) < 500) if(countitem(529) < 500) if(countitem(980) < 10) if(countitem(976) < 10) if(countitem(7267) < 100) if(countitem(7047) < 100) if(Zeny < 10000000) { mes "[^FF00FFGabbriele^000000]"; mes "Oh, so you did it !"; mes "Congratulations Here's your gift."; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 980,10; delitem 976,10; delitem 7267,100; delitem 7047,100; set Zeny, Zeny - 10000000; getitem 21328,1; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 5: mes "[ ^F660ABGabrielle^000000 ]"; mes "A Pink scarf ei? reminds of GM-Sweet she like's to wear it everytime. Anyway"; mes "Would you like one?"; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } next; Emotion e_ho; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you 1 ^0000FFPink Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you"; mes "1 ^0000FFPink Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Scarlet Dyestuff"; mes "10 White Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "10 Million Zeny"; mes "What do you say?"; next; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(7227) < 1) if(countitem(2236) < 5) if(countitem(538) < 500) if(countitem(529) < 500) if(countitem(975) < 10) if(countitem(982) < 10) if(countitem(7267) < 100) if(countitem(7047) < 100) if(Zeny < 10000000) { mes "[^FF00FFGabbriele^000000]"; mes "Oh, so you did it !"; mes "Congratulations Here's your gift."; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 975,10; delitem 982,10; delitem 7267,100; delitem 7047,100; set Zeny, Zeny - 10000000; getitem 21324,1; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 6: mes "[ ^F660ABGabrielle^000000 ]"; mes "A Green scarf ei? reminds of GM-Arvy she like's to wear it everytime. Anyway"; mes "Would you like one?"; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } next; Emotion e_ho; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you 1 ^0000FFGreen Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you"; mes "1 ^0000FFGreen Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Dark Green Dyestuff"; mes "10 White Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "10 Million Zeny"; mes "What do you say?"; next; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(7227) < 1) if(countitem(2236) < 5) if(countitem(538) < 500) if(countitem(529) < 500) if(countitem(979) < 10) if(countitem(982) < 10) if(countitem(7267) < 100) if(countitem(7047) < 100) if(Zeny < 10000000) { mes "[^FF00FFGabbriele^000000]"; mes "Oh, so you did it !"; mes "Congratulations Here's your gift."; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 979,10; delitem 982,10; delitem 7267,100; delitem 7047,100; set Zeny, Zeny - 10000000; getitem 21298,1; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 7: mes "[ ^F660ABGabrielle^000000 ]"; mes "Alright!"; mes "Just come back , Ill be waiting baby!"; Emotion e_no1; close; } } Here i updated it to its final desirable version still it goes all the way to case 7 it just ignores the else having trouble making it work. problem is when im about to the yes please option it just skips and moves to the other case it doesn't end or say that i have incomplete items.
  9. sec_in01,94,156,4 script Gabrielle 720,{ mes "[ ^F660ABGabrielle^000000 ]"; mes "Hi ^F4123F"+strcharinfo(0)+"^000000"; mes "I can trade several beautiful scarfs to you"; mes "Do you want to know what i have in store?"; next; if (select("Yes Please:No") == 2) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Comeback Soon!... >.>"; close; } mes "I have a collection of special magical Scarfs"; next; switch(select("^F4123FBlue Scarf^000000:^F4123FCyan Scarf^000000:^F4123FBlack Scarf^000000:^F4123FRed Scarf^000000:^F4123FPink Scarf^000000:^F4123FGreen Scarf^000000:^F4123FExit^000000")) { case 1: mes "[ ^F660ABGabrielle^000000 ]"; mes "A blue scarf ei? reminds of GM-Pentium she like's to wear it everytime. anyway"; mes "Would you like one?"; next; if (select("Yes Please:No") == 2) { mes "Alright guess it wasn't your type"; mes "Comeback Soon!... >.>"; close; } Emotion e_ho; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you"; mes "1 ^0000FFBlue Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Cobalt Blue Dyestuff"; mes "10 White Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "What do you say?"; next; if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(538) > 499) if(countitem(529) > 499) if(countitem(978) > 9) if(countitem(982) > 9) if(countitem(7267) > 99) if(countitem(7047) > 99) if(countitem(675) > 9) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Wow! You've Collected it all!"; next; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 978,10; delitem 982,10; delitem 7267,100; delitem 7047,100; delitem 675,10; mes "[ ^F660Gabrielle^000000 ]"; mes "Here you go"; getitem 21290,1; Emotion e_grat; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "See you around!"; Emotion e_bo; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 2: mes "[ ^F660ABGabrielle^000000 ]"; mes "A blue scarf ei? reminds of GM-Pentium she like's to wear it everytime. anyway"; mes "Would you like one?"; next; if (select("Yes Please:No") == 2) { mes "Alright guess it wasn't your type"; mes "Comeback Soon!... >.>"; close; } Emotion e_ho; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you"; mes "1 ^0000FFBlue Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Cobalt Blue Dyestuff"; mes "10 White Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "What do you say?"; next; if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(538) > 499) if(countitem(529) > 499) if(countitem(978) > 9) if(countitem(982) > 9) if(countitem(7267) > 99) if(countitem(7047) > 99) if(countitem(675) > 9) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Wow! You've Collected it all!"; next; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 978,10; delitem 982,10; delitem 7267,100; delitem 7047,100; delitem 675,10; mes "[ ^F660Gabrielle^000000 ]"; mes "Here you go"; getitem 21290,1; Emotion e_grat; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "See you around!"; Emotion e_bo; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 3: mes "[ ^F660ABGabrielle^000000 ]"; mes "A blue scarf ei? reminds of GM-Pentium she like's to wear it everytime. anyway"; mes "Would you like one?"; next; if (select("Yes Please:No") == 2) { mes "Alright guess it wasn't your type"; mes "Comeback Soon!... >.>"; close; } Emotion e_ho; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you"; mes "1 ^0000FFBlue Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Cobalt Blue Dyestuff"; mes "10 White Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "What do you say?"; next; if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(538) > 499) if(countitem(529) > 499) if(countitem(978) > 9) if(countitem(982) > 9) if(countitem(7267) > 99) if(countitem(7047) > 99) if(countitem(675) > 9) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Wow! You've Collected it all!"; next; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 978,10; delitem 982,10; delitem 7267,100; delitem 7047,100; delitem 675,10; mes "[ ^F660Gabrielle^000000 ]"; mes "Here you go"; getitem 21290,1; Emotion e_grat; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "See you around!"; Emotion e_bo; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 4: mes "[ ^F660ABGabrielle^000000 ]"; mes "A blue scarf ei? reminds of GM-Pentium she like's to wear it everytime. anyway"; mes "Would you like one?"; next; if (select("Yes Please:No") == 2) { mes "Alright guess it wasn't your type"; mes "Comeback Soon!... >.>"; close; } Emotion e_ho; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you"; mes "1 ^0000FFBlue Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Cobalt Blue Dyestuff"; mes "10 White Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "What do you say?"; next; if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(538) > 499) if(countitem(529) > 499) if(countitem(978) > 9) if(countitem(982) > 9) if(countitem(7267) > 99) if(countitem(7047) > 99) if(countitem(675) > 9) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Wow! You've Collected it all!"; next; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 978,10; delitem 982,10; delitem 7267,100; delitem 7047,100; delitem 675,10; mes "[ ^F660Gabrielle^000000 ]"; mes "Here you go"; getitem 21290,1; Emotion e_grat; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "See you around!"; Emotion e_bo; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 5: mes "[ ^F660ABGabrielle^000000 ]"; mes "A blue scarf ei? reminds of GM-Pentium she like's to wear it everytime. anyway"; mes "Would you like one?"; next; if (select("Yes Please:No") == 2) { mes "Alright guess it wasn't your type"; mes "Comeback Soon!... >.>"; close; } Emotion e_ho; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you"; mes "1 ^0000FFBlue Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Cobalt Blue Dyestuff"; mes "10 White Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "What do you say?"; next; if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(538) > 499) if(countitem(529) > 499) if(countitem(978) > 9) if(countitem(982) > 9) if(countitem(7267) > 99) if(countitem(7047) > 99) if(countitem(675) > 9) { mes "[ ^F660ABGabrielle^000000 ]"; mes "Wow! You've Collected it all!"; next; delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 978,10; delitem 982,10; delitem 7267,100; delitem 7047,100; delitem 675,10; mes "[ ^F660Gabrielle^000000 ]"; mes "Here you go"; getitem 21290,1; Emotion e_grat; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "See you around!"; Emotion e_bo; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 6: mes "[ ^F660ABGabrielle^000000 ]"; mes "A blue scarf ei? reminds of GM-Pentium she like's to wear it everytime. anyway"; mes "Would you like one?"; next; if (select("Yes Please:No") == 2) { mes "Alright guess it wasn't your type"; mes "Comeback Soon!... >.>"; close; } next; Emotion e_ho; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "I need the following items for me to give you"; mes "1 ^0000FFBlue Scarf^000000"; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "1 TCG Card"; mes "5 Santa's Hat"; mes "500 Well baked Cookie"; mes "500 Candy"; mes "10 Cobalt Blue Dyestuff"; mes "10 White Dyestuff"; mes "100 Tiger Panty"; mes "100 Alice's Apron"; mes "10 Silver Coins"; mes "What do you say?"; if(countitem(7227) > 1) if(countitem(2236) > 4) if(countitem(538) > 499) if(countitem(529) > 499) if(countitem(978) > 9) if(countitem(982) > 9) if(countitem(7267) > 99) if(countitem(7047) > 99) if(countitem(675) > 9) { delitem 7227,1; delitem 2236,5; delitem 538,500; delitem 529,500; delitem 978,10; delitem 982,10; delitem 7267,100; delitem 7047,100; delitem 675,10; mes "[ ^F660ABGabrielle^000000 ]"; mes "Wow! You've Collected it all!"; next; mes "[ ^F660Gabrielle^000000 ]"; mes "Here you go"; getitem 21290,1; Emotion e_grat; next; mes "[ ^F660ABGabrielle^000000 ]"; mes "See you around!"; Emotion e_bo; close; } else { mes "[ ^F660ABGabrielle^000000 ]"; mes "You don't meet my standards go away!"; Emotion e_heh; close; } case 7: mes "[ ^F660ABGabrielle^000000 ]"; mes "Alright!"; mes "Just come back , Ill be waiting baby!"; Emotion e_no1; close; } } Its not working the way i intended it to and it does go all the cases never halts or checks for the items, this was suppose to be a quest npc anyone can help me configure or set it properly?
  10. What do i change it with? im kinda new with making these sorry Its Still the same. Woah thank you Dynasty but what did you change? tell me and thank you to emistry and the others thank you for making it work. It did run but its functions are not working i try to make a quest but it does do what i intended to do. I want it to say what items are needed so that players could get them Can you fix my script? it doesn't stop until it run's all the case.
×
×
  • Create New...