-
Posts
1691 -
Joined
-
Last visited
-
Days Won
77
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by sader1992
-
the setd you use i think it need to be set not setd setd ".@izlnpc$","Cleo1"; to set .@izlnpc$,"Cleo1"; and this set FL_+@izlvar,rand(1,80); need to be setd something like setd "FL_" + @izlvar,rand(1,80); and you are writing this >> @izlvar = .@izlnpc$; so it will be int = string ? why don't you just use the strnpcinfo(2) insted of setting string .@izlnpc$ give it a try and i would suggest put the entire script not a part of it so we can help you fix it faster
-
i don't think so however i think there is a way to make kinda of vpn connection to connect to the login server so you use more then one vpn and the result would be the same as the one you want however didn't try that before so i don't have info about it
-
you should add more info about your issue like files name / what did you edit in lua/lub / is the headgears files added correctly ? /screenshot for the errors if you can
-
old topic However , the fix for that is rathena/src/config/core.h /// Uncomment to enable VIP system. //#define VIP_ENABLE without that the command wont work
-
write a Public message in his profile
-
i don't think you use TXT but if you use TXT edit in itemslotcounttable.txt
-
slotCount = 0,
-
as any script put the file in the npc folder and type the name in the script conf files
-
the enchant item it self must have script and for the 4th card slot you can edit it in the item_db.txt and iteminfo.lua
-
download the (unpacked)one from it (search in google 2015-11-04aRagexe unpacked) then use nemo on it
-
well Microsoft .NET Framework 3.5 DirectX End-User Runtimes (June 2010) Microsoft Visual C++ 2008 Redistributable Package (x86) Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) Microsoft Visual C++ 2010 Redistributable Package (x86) those what you need to run ragnarok
-
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
-
what your server packetvar ? (the client date that you use)
-
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; }
-
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
-
refresh the page and recopy i did forgot the end;
-
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; }
-
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
-
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
-
i test it and it work if i am wearing the item 16001 it take it from me and give me Energy Debris
-
dose the player have the same item in the bag ?
-
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'.
-
if you put the whole script here i could edit it for you
-
yes with the disable_items at the start after lhz_dun_n,135,264,4 script Memory of Tears 10092,{
-
there is no case for { goto Z_NOITEM; } so just type it without bracket and do disable_items; at the script start