Jump to content

Sneaky

Members
  • Posts

    392
  • Joined

  • Last visited

Community Answers

  1. Sneaky's post in Weapon stats request was marked as the answer   
    if(isequipped) and you should also put if(isequipped) everytime you're making a comparison.
     
    - script RoyalWeapon -1,{   OnPCKillEvent: if(isequipped(25621) ||  isequipped(25622) ||  isequipped(25623) ||  isequipped(25624) ||  isequipped(25625) ||  isequipped(25626) ||  isequipped(25627) ||  isequipped(25628) ||  isequipped(25629) ||  isequipped(25630) ||  isequipped(25631) ||  isequipped(25632) ||  isequipped(25633)) { if ( @kill < 10 ) {  set @kill,@kill + 1;  message strcharinfo(0),"You got "+@kill+" Kills"; } } end;   OnPCDieEvent: if(isequipped(25621) ||  isequipped(25622) ||  isequipped(25623) ||  isequipped(25624) ||  isequipped(25625) ||  isequipped(25626) ||  isequipped(25627) ||  isequipped(25628) ||  isequipped(25629) ||  isequipped(25630) ||  isequipped(25631) ||  isequipped(25632) ||  isequipped(25633)) { if ( @kill > 0 ) { set @kill, @kill/2;  message strcharinfo(0),"You got "+@kill+" Kills"; } } end; }
  2. Sneaky's post in Hm... NPC "Auction House". was marked as the answer   
    eA/rA has an auction system by default. If I'm not wrong it might be -> @auction
  3. Sneaky's post in @request Cash Trader was marked as the answer   
    Here you go:
    cashmaker.txt
  4. Sneaky's post in @request Quest NPC was marked as the answer   
    Here you go:
    questnpc.txt
  5. Sneaky's post in Giving a GM Level to a Player through a NPC? was marked as the answer   
    Something like this I guess:
    Quest 1:

    if(quest_completed == 1) { //If quest was finished if(getgmlevel() >= 1) { end; } //Prevent from altering current GM Level query_sql "UPDATE `login` SET level = '1' WHERE account_id = "+getcharid(3)+""; mes "Your Acount Level [^ff0000"+strcharinfo(0)+"^000000] has been changed to ^ff00001^000000."; close2; atcommand "@kick "+strcharinfo(0); //Relog end; }
    Quest 2 (To upgrade from gm lvl 1 to 2):

    if(quest2_completed == 1) { //If quest 2 was finished if(getgmlevel() >= 1 && getgmlevel() <= 5) {//Prevent from altering current GM Level (if it's high GM like 60 or so) query_sql "UPDATE `login` SET level = '2' WHERE account_id = "+getcharid(3)+""; mes "Your Acount Level [^ff0000"+strcharinfo(0)+"^000000] has been changed to ^ff00001^000000."; close2; atcommand "@kick "+strcharinfo(0); //Relog end; } else { end; } }
  6. Sneaky's post in What wrong with this -___- was marked as the answer   
    Right. I didn't notice that one, my bad.
    Here it is fully fixed (hopefully).

    prontera,150,155,5 script Test 51,{ mes "[^ff0000Baphomet Horn^000000]"; mes "Huh~ What do you want"; mes "Ohh I See You Want to make ^0055ffBaphomet Horn^000000 Right?"; menu "Yes", L_Yes; L_Yes: mes "^ff0000[baphomet Horn]^000000"; mes "Well if you Want to make^0055ff Baphomet Horn^000000"; next; mes "Get this items "; mes "^ff0000500 Evil Horn^000000"; mes "^ff00001 Majestic Goat [1]^000000"; mes "And ^ff000010,000,000^000000 for my efforts"; close; mes "[baphomet Horn]"; if (countitem(923) < 500 || countitem(5160) < 1 || Zeny < 10000000) goto L_NotEnough; delitem 923,500; delitem 5160,1; set Zeny,Zeny-10000000; mes "WoW! You are brave indeed!"; next; mes "[baphomet Horn]"; mes "Enjoy your Baphomet Horn Thanks to Jem"; getitem 5374,1; close; L_NotEnough: mes ". . .I'm Sorry .. You don't have enough money and items.."; mes "I can't affort to make this if you don't bring all materials needed. Please Understand this is to to benifit hereos such as yourself!"; close; }
  7. Sneaky's post in [Request] GM Item Testing NPC was marked as the answer   
    Yep you have to add it after the " : "
    would be like:

    - script gm_item_rest -1,{ end; OnPCLoginEvent: if(getgmlevel() < 50) { end; } //if GM is below 50 if(gettime(4) != 0) { end; } //if day is NOT sunday //here add the item deletions //if(countitem(x), blahblah..) end; }
    'gettime()'

    *gettime(<type>) This function will return specified information about the current system time. 1 - Seconds (of a minute) 2 - Minutes (of an hour) 3 - Hour (of a day) 4 - Week day (0 for Sunday, 6 is Saturday) 5 - Day of the month. 6 - Number of the month. 7 - Year. 8 - Day of the year. It will only return numbers. if (gettime(4)==6) mes "It's a Saturday. I don't work on Saturdays.";
    Yup something like that...
×
×
  • Create New...