-
Posts
883 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Quesooo
-
-
@noobzter003 search this line then change 969 to your prize id
OnWorldBossDied: stopnpctimer; killmonster $wbLastPopMap$, "All"; setarray .@rewardId[0], 969; //gold
-
1 minute ago, Alayne said:
As I told you I've been able to do it entirely so I know this script is working. Dunno what's blocking you... I'll give it another shot tomorrow see If I missed sthg
hahahah sorry again
-
@Alayne if you dont mind can you add also warp portal database for ROC quest?
map name prt_cas thank you
-
1 minute ago, Alayne said:
Well I've been able to complete it entirely so you probably missed sthg. Try talking to others npcs it sometime trigger the dialog on one of them only
already tried to talk to other npc they talk normally but the main npc at the center cant talk.. that npc needed so that they can continue the instance quest
-
2 hours ago, Alayne said:
Here's the one I have. That's not mine, so thanks to the person who made it.
thank you but still cant talk to main npc inside the instance
-
i got this error on my vote points npc
[Error]: script:op_2: invalid data for operator C_SUB
here's the script
//==================================================================================== //Script Name: Vote For Points NPC Script for FluxCP //SVN: Tested in rAthena r156513 //Developed By: JayPee Mateo //Version: 1.0 //Requirement(s): FluxCP V4P Addon //Description: This is a npc script for FluxCP Vote for points in order for the players //to claim their vote points //==================================================================================== prt_in,88,103,3 script VoteForPoints 89,{ //Function Prototypes function garbagecol;//Garbage collection for the Character variables garbagecol(); function add_item; //Syntanx: add_item(ITEMID,QUANTITY,POINTS,CATEGORY); function makeCategory;//This will return a list of the categories function getItemsByCat;//This will return the list of items associated to the particular category function getItemDetails;//This will return the details of the item function getPoints;//This will return the points of the player stored in the database function updatePoints;//This will updates the points of the player stored in the database //NPC Name set .npcname$,"[ Vote For Points ]"; //Initialization of the Rewards add_item(19577,1,100,"Costumes"); add_item(19509,1,100,"Costumes"); add_item(20318,1,100,"Costumes"); add_item(5980,1,100,"Costumes"); add_item(20221,1,100,"Costumes"); add_item(5914,1,100,"Costumes"); add_item(19976,1,100,"Costumes"); add_item(19514,1,100,"Costumes"); add_item(19521,1,100,"Costumes"); add_item(19513,1,100,"Costumes"); add_item(19517,1,100,"Costumes"); add_item(19507,1,100,"Costumes"); add_item(20135,1,100,"Costumes"); add_item(20136,1,100,"Costumes"); add_item(19954,1,100,"Costumes"); add_item(20461,1,100,"Costumes"); add_item(20438,1,100,"Costumes"); add_item(31149,1,100,"Costumes"); add_item(31033,1,100,"Costumes"); add_item(19038,1,120,"Headgears"); add_item(19039,1,180,"Headgears"); add_item(19176,1,150,"Headgears"); add_item(18550,1,120,"Headgears"); add_item(18561,1,144,"Headgears"); add_item(18844,1,150,"Headgears"); add_item(5567,1,160,"Headgears"); add_item(5394,1,175,"Headgears"); add_item(5819,1,180,"Headgears"); //Script Start mes .npcname$; mes "Hi! Do you want to exchange your vote points?:"; switch(select("Yes, I want to exchange my points:See my points")) { case 1: next; mes .npcname$; mes "Please choose a category:"; set .@selected,select(makeCategory())-1; next; mes .npcname$; mes "Please the item you want:"; set .@selected,select(getItemsByCat(@listCat$[.@selected]))-1; next; mes .npcname$; set .@ritemid,getItemDetails(@itemKeys[.@selected],"itemid"); set .@rquantity,getItemDetails(@itemKeys[.@selected],"quantity"); set .@rpoints,getItemDetails(@itemKeys[.@selected],"points"); mes "Item ID:"+.@ritemid; mes "Item Name: "+getitemname(.@ritemid); mes "Item Quantity: "+.@rquantity+" pc(s)."; mes "Required Points: "+.@rpoints+" pt(s)."; mes "\n"; mes "Do you want to this item?"; if(select("Yes:No")==1) { set .@points,getPoints(getcharid(3)); if(.@points>=.@rpoints) { next; mes .npcname$; updatePoints(getcharid(3),.@rpoints); getitem .@ritemid,.@rquantity; mes "Here you go!. Thank you for voting. Don't forget to vote again. :D"; } else mes "Sorry, you do not have enough points for this item."; } else { next; mes .npcname$; mes "Okay bye!"; } garbagecol(); close; case 2: next; mes .npcname$; set .@points,getPoints(getcharid(3)); mes "You currently have "+.@points+" pt(s)."; garbagecol(); close; } OnInit: waitingroom "Vote Merchant",0; end; //Functions Bodies function updatePoints { set .@account_id,getarg(0); set .@usedPoints,getarg(1); query_sql("UPDATE `cp_v4p_voters` SET points=(points-"+.@usedPoints+") WHERE account_id='"+.@account_id+"'"); return; } function getPoints { set .@account_id,getarg(0); query_sql("SELECT `points` FROM `cp_v4p_voters` WHERE account_id="+.@account_id+" LIMIT 1",.@points); if(getarraysize(.@points)==0) return 0; return .@points[0]; } function getItemDetails { set .@key,getarg(0); //Key set .@detail$,getarg(1); //What details to return such as ItemID, Points, Quantity, Category if(strtolower(.@detail$) == strtolower("ItemID")) return @itemID[.@key]; else if(strtolower(.@detail$) == strtolower("Quantity")) return @itemQ[.@key]; else if(strtolower(.@detail$) == strtolower("Points")) return @points[.@key]; else if(strtolower(.@detail$) == strtolower("Category")) return @category$[.@key]; } function getItemsByCat { set .@selectedCat$,getarg(0); set .@make_string$,""; set .@x,0; for(set .@i,0; .@i<getarraysize(@category$); set .@i,.@i+1) { if(strtolower(.@selectedCat$) == strtolower(@category$[.@i])) { setarray @itemKeys[.@x],.@i; if(.@make_string$ == "") set .@make_string$,getitemname(@itemID[.@i]); else set .@make_string$,.@make_string$+":"+getitemname(@itemID[.@i]); set .@x,.@x+1; } } return .@make_string$; } function makeCategory { set .@make_string$,""; for(set .@i,0; .@i<getarraysize(@category$); set .@i,.@i+1) { if(.@make_string$ == "") { setarray @listCat$[getarraysize(@listCat$)],@category$[.@i]; set .@make_string$,@category$[.@i]; } else { if(compare(.@make_string$,@category$[.@i])==0) { setarray @listCat$[getarraysize(@listCat$)],@category$[.@i]; set .@make_string$,.@make_string$+":"+@category$[.@i]; } } } return .@make_string$; } function add_item { set .@itemID,getarg(0,-1); //IteID set .@itemQ,getarg(1,-1); //Item Quantity set .@points,getarg(2,-1); set .@cat$,getarg(3,"Uncategorized"); //Category if(.@itemID == -1) { debugmes "Invalid Item ID. Script not completely loaded."; end; } else if(.@itemQ == -1) { debugmes "Invalid Item Quantity. Script not completely loaded."; end; } else if(.@points == -1) { debugmes "Points assignment error. Script not completely loaded."; end; } set .@key,getarraysize(@itemID); setarray @itemID[.@key],.@itemID; setarray @itemQ[.@key],.@itemQ; setarray @points[.@key],.@points; setarray @category$[.@key],.@cat$; return 1; //return 1 as success } function garbagecol{ deletearray @itemID[0],128; deletearray @itemQ[0],128; deletearray @points[0],128; deletearray @category$[0],128; deletearray @listCat$[0],128; deletearray @itemKeys[0],128; return; } }
-
3 minutes ago, Alayne said:
Well I supposed that's got you did not edit the add point function to replace the reward. But without the error that's hard to say...
dont forget the nightmarish eheheheh thank you
-
1 minute ago, Alayne said:
Well it depends on the script you're trying to add :/ Which one is it?
@Alayne i have question how does yggdrasil scripts works? im little bit confuse where are they located and what functions they are using..
i think also maps are custom right?
-
20 minutes ago, Alayne said:
And you have some resits stuff equiped?
ohw the resist stuffs missing hahahahaha btw thank you
-
12 minutes ago, Alayne said:
As said earlier, you need to have an uptodate item_info_re on database if you're using the script as I gave it.
hmmm as far i can see i check my table but i use item_db_re also XD
-
8 minutes ago, Alayne said:
I've got a running version at home, I'll send it to you when coming back if you want.
thank you
-
im just wondering if resislist only but i dont see any values
-
what is the command of this script?
-
forgot to mention this topic
already fix thank you guys
-
hi good day can someone help me to fix this instance
after entering the instance cant continue the instance because npc Newoz is not clickable
thank you here's the script
-
12 hours ago, noobzter003 said:
how do i add Addpoint function
go to utilities and choose main function
-
3 minutes ago, hendra814 said:
wow, thanks a lot.
this is very great.
yeah right thank you @sader1992
-
also i mean on endless cellar MVP monster is when the MVP mobs summon their slaves then the MVP died the slaves remaining on the map
and still attacking
possible to be happen is when mvp died the slaves also died
but ithink this is mobs skill part but i already check it i dont see any problem on that
On 11/27/2017 at 4:13 PM, Alayne said:Hum that's not the code portion I thought. I'll need to check that. So you say that leader create instance and enter, but no teammate can enter after that, is it?
yes it is
-
8 minutes ago, Alayne said:
Can you tell me which one? That's probably a code portion I forgot to move.
if im not wrong the bossnest and astral temple
-
2 minutes ago, Alayne said:
a 2015 something. Don't remember, as i'm using three differents on 3 different servers XD
btw @Alayne i forgot to mention some of the instance like the custom one not allowed party team to teleport inside just for 1 player only ( party leader )
-
1 minute ago, sader1992 said:
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
ouch yeah typo thank you
-
3 minutes ago, sader1992 said:
refresh the page and recopy i did forgot the end;
it works what i wanted now thank you so much
-
1 minute ago, sader1992 said:
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); }else if(getequipid(EQI_HAND_R) != getarg(0) && countitem(getarg(0)) > 0){ delitem getarg(0),1; getitem 6820,rand(1,5); } 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; }
woah thank you @sader1992 also @hendra814 for keep on getting solutions !
-
5 minutes ago, sader1992 said:
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
need to reqrite the npc
thank you sir
H > Nightmarish Jitterbug problem
in Scripting Support
Posted
hi sir lots of error given but i got this script here on rathena
posted by : Nova
here are some errors
can help me out?