Jump to content

Quesooo

Members
  • Posts

    883
  • Joined

  • Last visited

Everything posted by Quesooo

  1. @Nova please update nightmarish jitterburg thank you
  2. 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?
  3. @noobzter003 search this line then change 969 to your prize id OnWorldBossDied: stopnpctimer; killmonster $wbLastPopMap$, "All"; setarray .@rewardId[0], 969; //gold
  4. @Alayne if you dont mind can you add also warp portal database for ROC quest? map name prt_cas thank you
  5. 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
  6. thank you but still cant talk to main npc inside the instance
  7. 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; } }
  8. dont forget the nightmarish eheheheh thank you
  9. @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?
  10. Quesooo

    R>@resists

    ohw the resist stuffs missing hahahahaha btw thank you
  11. Quesooo

    R>@resists

    hmmm as far i can see i check my table but i use item_db_re also XD
  12. Quesooo

    R>@resists

    im just wondering if resislist only but i dont see any values
  13. Quesooo

    R>@resists

    what is the command of this script?
  14. forgot to mention this topic already fix thank you guys
  15. 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 Nightmarish_Jitterbug.txt
  16. go to utilities and choose main function
  17. yeah right thank you @sader1992
  18. 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 yes it is
  19. if im not wrong the bossnest and astral temple
  20. 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 )
  21. it works what i wanted now thank you so much
  22. woah thank you @sader1992 also @hendra814 for keep on getting solutions !
×
×
  • Create New...