Jump to content

sader1992

Content Moderator
  • Posts

    1678
  • Joined

  • Last visited

  • Days Won

    72

Everything posted by sader1992

  1. why not windows xp and up ? you can download it from the internet if you think that this (potato)PC can't handle windows xp then it can't handle ragnarok XD
  2. what your server packetvar ? (the client date that you use)
  3. this the full npc not only the first part lhz_dun_n,135,264,4 script Memory of Tears 10092,{ disable_items; mes "I can Convert some items to energy debris in random from 1 to 5 what do you want"; next; menu "Exchange Items to Energy Debris",Z_EE,"Create Costume",Z_EEE,"Leave",Z_EXIT; Z_EE: mes "Done Thank you"; setarray .@itemsid,1284,1285,1290,18109,18110,18111,1745,18103,1647,1659,1654,2004,2005,13431,1196,13421,1584,13061,13062,13070,13046,13047,16017,16010,16000,16001,1433,1435,1490,1930,1963,1830,1393,1392; for(.@i=0;.@i<getarraysize(.@itemsid);.@i++){ callsub getitemsub,.@itemsid[.@i]; } goto Z_NOITEM; end; getitemsub: if(getequipid(EQI_HAND_R) == getarg(0) && countitem(getarg(0)) > 1){ delitem getarg(0),1; getitem 6820,rand(1,5); end; }else if(getequipid(EQI_HAND_R) != getarg(0) && countitem(getarg(0)) > 0){ delitem getarg(0),1; getitem 6820,rand(1,5); end; } return; Z_EEE: mes "I can also Exchange 50pcs energy debris and 1 3rd job head gear to 1 costume 3rd job items"; next; setarray .@options$,"Costume Rune Circlet:Costume Mitra:Costume Driver Band:Costume Driver Band (Yellow):Costume Shadow Crown:Costume Minstrel Song:Costume Midas Whisper:Costume Magic Stone Hat:Costume Burning Spirit:Costume Wispers of Wind:Costume Circlet of Bone:Costume Guardian Crown:Costume Camouflage of Rabbit Hood:Leave"; set .@choose,select(.@options$) - 1; setarray .@itemid1,18971,18972,18973,18974,18983,18976,18977,18978,18979,18980,18982,18983,18984;//items require setarray .@itemid2,19961,19962,19963,19964,19965,19966,19967,19968,19969,19970,19971,19972,19974;//items get if(.@choose == 13){//here the last option it's number is 13 if you added more items you need to change this goto Z_EXIT; } if(getequipid(EQI_HEAD_TOP) == .@itemid1[.@choose] && countitem(.@itemid1[.@choose]) > 1){ if(countitem(6820) < 50) goto Z_NOITEM; delitem 6820,50; delitem .@itemid1[.@choose],1; getitem .@itemid2[.@choose],1; mes "Thank you very very much!"; end; }else if(getequipid(EQI_HEAD_TOP) != .@itemid1[.@choose] && countitem(.@itemid1[.@choose]) > 0){ if(countitem(6820) < 50) goto Z_NOITEM; delitem 6820,50; delitem .@itemid1[.@choose],1; getitem .@itemid2[.@choose],1; mes "Thank you very very much!"; end; } Z_NOITEM: mes "You dont have enought items i need"; mes "Good bye."; close; Z_EXIT: mes "[Reaper]"; mes callfunc("F_Bye"); close; }
  4. i have to say something in the script not right like this part and before /after Z_EEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18983,1;//Items: Feather_of_Birds, getitem 19965,1;//Items: Bird_Nest, mes "Thank you very very much!"; end here you are checking fo 18974 but you are deleting 18983
  5. refresh the page and recopy i did forgot the end;
  6. i did optimize the first part in the script to make it work as you wanted lhz_dun_n,135,264,4 script Memory of Tears 10092,{ disable_items; mes "I can Convert some items to energy debris in random from 1 to 5 what do you want"; next; menu "Exchange Items to Energy Debris",Z_EE,"Create Costume",Z_EEE,"Leave",Z_EXIT; Z_EE: mes "Done Thank you"; setarray .@itemsid,1284,1285,1290,18109,18110,18111,1745,18103,1647,1659,1654,2004,2005,13431,1196,13421,1584,13061,13062,13070,13046,13047,16017,16010,16000,16001,1433,1435,1490,1930,1963,1830,1393,1392; for(.@i=0;.@i<getarraysize(.@itemsid);.@i++){ callsub getitemsub,.@itemsid[.@i]; } goto Z_NOITEM; end; getitemsub: if(getequipid(EQI_HAND_R) == getarg(0) && countitem(getarg(0)) > 1){ delitem getarg(0),1; getitem 6820,rand(1,5); end; }else if(getequipid(EQI_HAND_R) != getarg(0) && countitem(getarg(0)) > 0){ delitem getarg(0),1; getitem 6820,rand(1,5); end; } return; //if(countitem(1284) > 0) goto one; // if(countitem(1285) > 0) goto two; // if(countitem(1290) > 0) goto three; // if(countitem(18109) > 0) goto four; // if(countitem(18110) > 0) goto five; // if(countitem(18111) > 0) goto six; // if(countitem(1745) > 0) goto seven; // if(countitem(18103) > 0) goto eight; // if(countitem(1647) > 0) goto nine; // if(countitem(1659) > 0) goto ten; // if(countitem(1654) > 0) goto eleven; // if(countitem(2004) > 0) goto twelve; // if(countitem(2005) > 0) goto thirteen; // if(countitem(13431) > 0) goto fourteen; // if(countitem(1196) > 0) goto fifteen; // if(countitem(13421) > 0) goto sixteen; // if(countitem(1584) > 0) goto seventeen; // if(countitem(13061) > 0) goto eightteen; // if(countitem(13062) > 0) goto nineteen; // if(countitem(13070) > 0) goto twenty; // if(countitem(13046) > 0) goto twentyone; // if(countitem(13047) > 0) goto twentytwo; // if(countitem(16017) > 0) goto twentythree; // if(countitem(16010) > 0) goto twentyfour; // if(countitem(16000) > 0) goto twentyfive; // if(countitem(16001) > 0) goto twentysix; // if(countitem(1433) > 0) goto twentyseven; // if(countitem(1435) > 0) goto twentyeight; // if(countitem(1490) > 0) goto twentynine; // if(countitem(1930) > 0) goto thirty; // if(countitem(1963) > 0) goto thirtyone; // if(countitem(1830) > 0) goto thirtytwo; // if(countitem(1393) > 0) goto thirtythree; // if(countitem(1392) > 0) goto thirtyfour; // goto Z_NOITEM; //one: // delitem 1284,1; // getitem 6820,rand(1,5); // end; //two: // delitem 1285,1; // getitem 6820,rand(1,5); // end; //three: // delitem 1290,1; // getitem 6820,rand(1,5); // end; //four: // delitem 18109,1; // getitem 6820,rand(1,5); // end; //five: // delitem 18110,1; // getitem 6820,rand(1,5); // end; //six: // delitem 18111,1; // getitem 6820,rand(1,5); // end; //zeven: // delitem 1745,1; // getitem 6820,rand(1,5); // end; //eight: // delitem 18103,1; // getitem 6820,rand(1,5); // end; //nine: // delitem 1647,1; // getitem 6820,rand(1,5); // end; //ten: // delitem 1659,1; // getitem 6820,rand(1,5); // end; //eleven: // delitem 1654,1; // getitem 6820,rand(1,5); // end; //twelve: // delitem 2004,1; // getitem 6820,rand(1,5); // end; //thirteen: // delitem 2005,1; // getitem 6820,rand(1,5); // end; //fourteen: // delitem 13431,1; // getitem 6820,rand(1,5); // end; //fifteen: // delitem 1196,1; // getitem 6820,rand(1,5); // end; //sixteen: // delitem 13421,1; // getitem 6820,rand(1,5); // end; //seventeen: // delitem 1584,1; // getitem 6820,rand(1,5); // end; //eightteen: // delitem 13061,1; // getitem 6820,rand(1,5); //nineteen: // delitem 13062,1; // getitem 6820,rand(1,5); // end; //twenty: // delitem 13070,1; // getitem 6820,rand(1,5); // end; //twentyone: // delitem 13046,1; // getitem 6820,rand(1,5); // end; //twentytwo: // delitem 13047,1; // getitem 6820,rand(1,5); // end; //twentythree: // delitem 16017,1; // getitem 6820,rand(1,5); // end; //twentyfour: // delitem 16010,1; // getitem 6820,rand(1,5); // end; //twentyfive: // delitem 16000,1; // getitem 6820,rand(1,5); // end; //twentysix: // delitem 16001,1; // getitem 6820,rand(1,5); // end; //twentyseven: // delitem 1433,1; // getitem 6820,rand(1,5); // end; //twentyeight: // delitem 1435,1; // getitem 6820,rand(1,5); // end; //twentynine: // delitem 1490,1; // getitem 6820,rand(1,5); // end; //thirty: // delitem 1930,1; // getitem 6820,rand(1,5); // end; //thirtyone: // delitem 1963,1; // getitem 6820,rand(1,5); // end; //thirtytwo: // delitem 1830,1; // getitem 6820,rand(1,5); // end; //thirtythree: // delitem 1393,1; // getitem 6820,rand(1,5); // end; //thirtyfour: // delitem 1392,1; // getitem 6820,rand(1,5); // end; Z_EEE: mes "I can also Exchange 50pcs energy debris and 1 3rd job head gear to 1 costume 3rd job items"; next; menu "Costume Rune Circlet",Z_EEEE,"Costume Mitra",Z_EEEEE,"Costume Driver Band",Z_EEEEEE,"Costume Driver Band (Yellow)",Z_EEEEEEE,"Costume Shadow Crown",Z_EEEEEEEE,"Costume Minstrel Song",Z_EEEEEEEEE,"Costume Midas Whisper",Z_EEEEEEEEEE,"Costume Magic Stone Hat",Z_EEEEEEEEEEE,"Costume Burning Spirit",Z_EEEEEEEEEEEE,"Costume Wispers of Wind",Z_EEEEEEEEEEEEE,"Costume Circlet of Bone",Z_EEEEEEEEEEEEEE,"Costume Guardian Crown",Z_EEEEEEEEEEEEEEE,"Costume Camouflage of Rabbit Hood",Z_EEEEEEEEEEEEEEEE,"Leave",Z_EXIT; Z_EEEE: if(countitem(6820) < 50 || countitem(18971) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18971,1;//Items: Feather_of_Birds, getitem 19961,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEE: if(countitem(6820) < 50 || countitem(18972) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18972,1;//Items: Feather_of_Birds, getitem 19962,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEE: if(countitem(6820) < 50 || countitem(18973) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18973,1;//Items: Feather_of_Birds, getitem 19963,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18974,1;//Items: Feather_of_Birds, getitem 19964,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18983,1;//Items: Feather_of_Birds, getitem 19965,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18976,1;//Items: Feather_of_Birds, getitem 19966,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18977,1;//Items: Feather_of_Birds, getitem 19967,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18978,1;//Items: Feather_of_Birds, getitem 19968,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18979,1;//Items: Feather_of_Birds, getitem 19969,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18980,1;//Items: Feather_of_Birds, getitem 19970,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18982,1;//Items: Feather_of_Birds, getitem 19971,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18983,1;//Items: Feather_of_Birds, getitem 19972,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18984,1;//Items: Feather_of_Birds, getitem 19974,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_NOITEM: mes "You dont have enought items i need"; mes "Good bye."; close; Z_EXIT: mes "[Reaper]"; mes callfunc("F_Bye"); close; }
  7. if(getequipid(EQI_HAND_R) == 1284){ if(countitem(1284) == 1) goto Z_NOITEM; }else delitem 1284,1; getitem 6820,rand(1,5); end; if this getequipid(EQI_HAND_R) == 1284 then the player have 1 item in his hand and maybe have another item so if you don't want the npc take the item from his hand you need to check if the player is equiped the item then check for 2 items if the player don't equip the item then you need to check for 1 item the result would be the same that the npc will only take the item from the bag not if the player is equiped it for else if else done have {} then it will only exeute the next command so if you want the next 2 command to work in else you need to put them in {} so the result of this command with no change would be if the player not equip the item then the script will try to delete the item if he have it it will be deleted if not you will get error in the terminal then the script will do this getitem 6820,rand(1,5); whatever happen in the script
  8. well that change every thing XD you need to write a check for it the item equiped is the same item the npc want it something like this if(getequipid(EQI_HAND_R) == 16001){ if(countitem(16001) > 1) goto twentysix; }else{ if(countitem(16001) > 0) goto twentysix; } or you need to make a sub or function and optimize the script to write this only once not one every id and make sure you use the right getequipid *getequipid({<equipment slot>,<char_id>}) EQI_COMPOUND_ON (-1) - Item slot that calls this script (In context of item script) EQI_ACC_L (0) - Accessory 1 EQI_ACC_R (1) - Accessory 2 EQI_SHOES (2) - Footgear (shoes, boots) EQI_GARMENT (3) - Garment (mufflers, hoods, manteaux) EQI_HEAD_LOW (4) - Lower Headgear (beards, some masks) EQI_HEAD_MID (5) - Middle Headgear (masks, glasses) EQI_HEAD_TOP (6) - Upper Headgear EQI_ARMOR (7) - Armor (jackets, robes) EQI_HAND_L (8) - Left hand (weapons, shields) EQI_HAND_R (9) - Right hand (weapons) EQI_COSTUME_HEAD_TOP (10) - Upper Costume Headgear EQI_COSTUME_HEAD_MID (11) - Middle Costume Headgear EQI_COSTUME_HEAD_LOW (12) - Lower Costume Headgear EQI_COSTUME_GARMENT (13) - Costume Garment EQI_AMMO (14) - Arrow/Ammunition EQI_SHADOW_ARMOR (15) - Shadow Armor EQI_SHADOW_WEAPON (16) - Shadow Weapon EQI_SHADOW_SHIELD (17) - Shadow Shield EQI_SHADOW_SHOES (18) - Shadow Shoes EQI_SHADOW_ACC_R (19) - Shadow Accessory 2 EQI_SHADOW_ACC_L (20) - Shadow Accessory 1
  9. i test it and it work if i am wearing the item 16001 it take it from me and give me Energy Debris
  10. dose the player have the same item in the bag ?
  11. lhz_dun_n,135,264,4 script Memory of Tears 10092,{ disable_items; mes "I can Convert some items to energy debris in random from 1 to 5 what do you want"; next; menu "Exchange Items to Energy Debris",Z_EE,"Create Costume",Z_EEE,"Leave",Z_EXIT; Z_EE: mes "Done Thank you"; if(countitem(1284) > 0) goto one; if(countitem(1285) > 0) goto two; if(countitem(1290) > 0) goto three; if(countitem(18109) > 0) goto four; if(countitem(18110) > 0) goto five; if(countitem(18111) > 0) goto six; if(countitem(1745) > 0) goto seven; if(countitem(18103) > 0) goto eight; if(countitem(1647) > 0) goto nine; if(countitem(1659) > 0) goto ten; if(countitem(1654) > 0) goto eleven; if(countitem(2004) > 0) goto twelve; if(countitem(2005) > 0) goto thirteen; if(countitem(13431) > 0) goto fourteen; if(countitem(1196) > 0) goto fifteen; if(countitem(13421) > 0) goto sixteen; if(countitem(1584) > 0) goto seventeen; if(countitem(13061) > 0) goto eightteen; if(countitem(13062) > 0) goto nineteen; if(countitem(13070) > 0) goto twenty; if(countitem(13046) > 0) goto twentyone; if(countitem(13047) > 0) goto twentytwo; if(countitem(16017) > 0) goto twentythree; if(countitem(16010) > 0) goto twentyfour; if(countitem(16000) > 0) goto twentyfive; if(countitem(16001) > 0) goto twentysix; if(countitem(1433) > 0) goto twentyseven; if(countitem(1435) > 0) goto twentyeight; if(countitem(1490) > 0) goto twentynine; if(countitem(1930) > 0) goto thirty; if(countitem(1963) > 0) goto thirtyone; if(countitem(1830) > 0) goto thirtytwo; if(countitem(1393) > 0) goto thirtythree; if(countitem(1392) > 0) goto thirtyfour; goto Z_NOITEM; one: delitem 1284,1; getitem 6820,rand(1,5); end; two: delitem 1285,1; getitem 6820,rand(1,5); end; three: delitem 1290,1; getitem 6820,rand(1,5); end; four: delitem 18109,1; getitem 6820,rand(1,5); end; five: delitem 18110,1; getitem 6820,rand(1,5); end; six: delitem 18111,1; getitem 6820,rand(1,5); end; zeven: delitem 1745,1; getitem 6820,rand(1,5); end; eight: delitem 18103,1; getitem 6820,rand(1,5); end; nine: delitem 1647,1; getitem 6820,rand(1,5); end; ten: delitem 1659,1; getitem 6820,rand(1,5); end; eleven: delitem 1654,1; getitem 6820,rand(1,5); end; twelve: delitem 2004,1; getitem 6820,rand(1,5); end; thirteen: delitem 2005,1; getitem 6820,rand(1,5); end; fourteen: delitem 13431,1; getitem 6820,rand(1,5); end; fifteen: delitem 1196,1; getitem 6820,rand(1,5); end; sixteen: delitem 13421,1; getitem 6820,rand(1,5); end; seventeen: delitem 1584,1; getitem 6820,rand(1,5); end; eightteen: delitem 13061,1; getitem 6820,rand(1,5); nineteen: delitem 13062,1; getitem 6820,rand(1,5); end; twenty: delitem 13070,1; getitem 6820,rand(1,5); end; twentyone: delitem 13046,1; getitem 6820,rand(1,5); end; twentytwo: delitem 13047,1; getitem 6820,rand(1,5); end; twentythree: delitem 16017,1; getitem 6820,rand(1,5); end; twentyfour: delitem 16010,1; getitem 6820,rand(1,5); end; twentyfive: delitem 16000,1; getitem 6820,rand(1,5); end; twentysix: delitem 16001,1; getitem 6820,rand(1,5); end; twentyseven: delitem 1433,1; getitem 6820,rand(1,5); end; twentyeight: delitem 1435,1; getitem 6820,rand(1,5); end; twentynine: delitem 1490,1; getitem 6820,rand(1,5); end; thirty: delitem 1930,1; getitem 6820,rand(1,5); end; thirtyone: delitem 1963,1; getitem 6820,rand(1,5); end; thirtytwo: delitem 1830,1; getitem 6820,rand(1,5); end; thirtythree: delitem 1393,1; getitem 6820,rand(1,5); end; thirtyfour: delitem 1392,1; getitem 6820,rand(1,5); end; Z_EEE: mes "I can also Exchange 50pcs energy debris and 1 3rd job head gear to 1 costume 3rd job items"; next; menu "Costume Rune Circlet",Z_EEEE,"Costume Mitra",Z_EEEEE,"Costume Driver Band",Z_EEEEEE,"Costume Driver Band (Yellow)",Z_EEEEEEE,"Costume Shadow Crown",Z_EEEEEEEE,"Costume Minstrel Song",Z_EEEEEEEEE,"Costume Midas Whisper",Z_EEEEEEEEEE,"Costume Magic Stone Hat",Z_EEEEEEEEEEE,"Costume Burning Spirit",Z_EEEEEEEEEEEE,"Costume Wispers of Wind",Z_EEEEEEEEEEEEE,"Costume Circlet of Bone",Z_EEEEEEEEEEEEEE,"Costume Guardian Crown",Z_EEEEEEEEEEEEEEE,"Costume Camouflage of Rabbit Hood",Z_EEEEEEEEEEEEEEEE,"Leave",Z_EXIT; Z_EEEE: if(countitem(6820) < 50 || countitem(18971) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18971,1;//Items: Feather_of_Birds, getitem 19961,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEE: if(countitem(6820) < 50 || countitem(18972) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18972,1;//Items: Feather_of_Birds, getitem 19962,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEE: if(countitem(6820) < 50 || countitem(18973) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18973,1;//Items: Feather_of_Birds, getitem 19963,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18974,1;//Items: Feather_of_Birds, getitem 19964,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18983,1;//Items: Feather_of_Birds, getitem 19965,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18976,1;//Items: Feather_of_Birds, getitem 19966,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18977,1;//Items: Feather_of_Birds, getitem 19967,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18978,1;//Items: Feather_of_Birds, getitem 19968,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18979,1;//Items: Feather_of_Birds, getitem 19969,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18980,1;//Items: Feather_of_Birds, getitem 19970,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18982,1;//Items: Feather_of_Birds, getitem 19971,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18983,1;//Items: Feather_of_Birds, getitem 19972,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_EEEEEEEEEEEEEEEE: if(countitem(6820) < 50 || countitem(18974) < 1) GOTO Z_NOITEM; delitem 6820,50;//Items: Sombrero, delitem 18984,1;//Items: Feather_of_Birds, getitem 19974,1;//Items: Bird_Nest, mes "Thank you very very much!"; end; Z_NOITEM: mes "You dont have enought items i need"; mes "Good bye."; close; Z_EXIT: mes "[Reaper]"; mes callfunc("F_Bye"); close; } disable item is used for every npc work with items that can be equip like refine npcs or enchant etc *enable_items; *disable_items; These commands toggle the ability to change equipment while interacting with an NPC. To avoid possible exploits, the commands affect the particular script instance only. Note that if a different script also calls enable_items, it will override the last call (so you may want to call this command at the start of your script without assuming it is still in effect). The default setting, 'item_enabled_npc', is defined in 'conf/battle/items.conf'.
  12. if you put the whole script here i could edit it for you
  13. yes with the disable_items at the start after lhz_dun_n,135,264,4 script Memory of Tears 10092,{
  14. there is no case for { goto Z_NOITEM; } so just type it without bracket and do disable_items; at the script start
  15. and i see if(countitem(6010) < 1 && countitem(6011) < 1) goto Lnopick; so you want to take one of each item ? as i see you are re typing the script after it end and the script at the first part ask for 6010 then it end so the player wont go to the next part that ask for 6011 set .mining,1; is a npc variable so when the player talk to the npc any player talk to the same npc the variable would be 1 even if they didn't reach set .mining,1;
  16. can you put all the script not a part and please use this when you put a long script
  17. i will take one for example setbattleflag "item_rate_common", 2*getbattleflag("item_rate_common"); so here getbattleflag("item_rate_common") = x 2*x first put the calculation in bracelet so it will be setbattleflag "item_rate_common", (2*getbattleflag("item_rate_common")); the next one for reseting the rate setbattleflag "item_rate_common", 2*getbattleflag("item_rate_common")/2; if x is the original then on the happy hour start is 2*x at end is 2*(2*x)/2 = 2*x math lol just the happy hour end put it like that setbattleflag "item_rate_common", (getbattleflag("item_rate_common")/2);
  18. i would suggest you try this> rename the npc folder restart the server(there is no warps/npcs/monsters/etc) you can still @commands etc try to test your server in this state and see if you will get the error this wont fix the error it's only let's you know if there is script/ command script doing this for the server and read the terminal seek for anyerror if you did get this again then it's not from scripts/command scripts it's from the vps system / src or even from sql i think your best option is see what's not causing the problem to know what cause it unless someone here know what happen for you
  19. need more info like what the vps ram ping for you did you try to debug it ? remove all the npcs and run the server ? what rathena version is there custom patches in it ? etc
  20. try this rathena/conf/battle/client.conf // Save body styles. (Note 1) // Note: Don't turn this on unless you know what your doing. // Sprites are not released officially. save_body_style: no to // Save body styles. (Note 1) // Note: Don't turn this on unless you know what your doing. // Sprites are not released officially. save_body_style: yes
  21. you can't diff an already diffed client make a new one and choose your options carefully
  22. you are using Change Walk To Delay. or Disable Walk To Delay. in NEMO DON'T USE ANY OF THEM this is the fix for your problem (re diff your client)
  23. i did see the script you are talking about i don't know why you get this issue but i see you always attach a player even if he already attached so first thing i would suggest don't use attachrid 'mocTalking; when the player already attached of corse even if you use i don't see where this would be a problem but it's possible that it would create a problem like that also the same for instance_id() the script would know the instance id without (Except for instance_announce) so set .@npcname$, instance_npcname(strnpcinfo(0)); and set .@npcname$, instance_npcname(strnpcinfo(0), instance_id()); have must have the same result but as always i maybe wrong and also maybe this have nothing to do with the issue
  24. i know you did give me this file before but i didn't notice this until i did read it here sorry ~o-o~ #if PACKETVER > 20170517 this you have to not change , this what case the error #if PACKETVER > 20151104
  25. prontera,156,22,0 script prt_fild08_warp 45,1,1,{ getpartymember getcharid(1),1; 'count = $@partymembercount; 'map$ = instance_mapname("prt_fild08"); 'map2$ = instance_mapname("?"); if(('count / 2) > 'countwarped){ 'countwarped += 1; warp 'map$,170,375; }else{ warp 'map2$,170,375; } } what the warp script you use ?
×
×
  • Create New...