Jump to content

Cyro

Members
  • Posts

    1138
  • Joined

  • Last visited

  • Days Won

    30

Everything posted by Cyro

  1. you recompiled? and also check your grf for this sprite files
  2. change this getitem 12214,5; getitem 12210,5; getitem 12263,5; getitem 5826,1; getitem 569,30; getitem 12323,20; to getitembound 12214,5,1; getitembound 12210,5,1; getitembound 12263,5,1; getitembound 5826,1,1; getitembound 569,30,1; getitembound 12323,20,1;
  3. there is two possibilities here 1.you must change the max npc setting in npc.h. the recompile 2.you dont have a sprite with number 140 ....
  4. prontera,165,168,3 script woepoints 89,{ //Function Prototypes //modfied by cyro 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$,"[ Woe Points ]"; //Initialization of the Rewards add_item(14532,1,10,"25% manual"); add_item(14533,1,20,"50% job Manual"); add_item(13599,1,90,"50% base manual[5p box]"); add_item(30182,1,500,"zoro sword"); add_item(30129,1,600,"dragon blade"); add_item(30154,1,700,"runes of power"); //Script Start if (getguildmasterid(getcharid(2)) == getcharid(0)) { mes .npcname$; mes "Hi! Do you want to exchange your woe 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!: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; } else { next; mes .npcname$; mes "You must be guild leader to use my services!"; } } end; //Functions Bodies function updatePoints { set .@account_id,getarg(0); set .@usedPoints,getarg(1); query_sql("UPDATE `guild_points` SET points=(woe_points-"+.@usedPoints+") WHERE guild_id='"+.@guild_id+"'"); return; } function getPoints { set .@account_id,getarg(0); query_sql("SELECT `woe_points` FROM `guild_points` WHERE guild_id="+.@guild_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; } } this is not tested, please update me if you see any errors
  5. I love your designs, especially logo's, i am using logo made by you for my server 9/10
  6. there is min,max drop rates in drop.conf try checking those values out
  7. i also sense this consume system modification might be effected it as @Radian said
  8. my bad, i didnt notice it, and its working fine for me can you try this one 27001,Blush,Blush,5,20,,0,,1,,1,0xFFFFFFFF,7,2,1024,,0,0,125,{ bonus bVit,3; bonus bLuk,2; bonus bMaxHPrate,6; },{},{} try this one?
  9. if((Zeny > 1) set Zeny, Zeny-1;
  10. open your grf's and check your sprites of novice
  11. 1. You might replaced default npc sprite to mounted novice 2. Some of your script might trigger that every new character made will start with a mount
  12. you can check this thread
  13. Cyro

    Add custom box

    function script Angelus { setarray .BoxItems [ 0 ],12103,2214; set .Random, getarraysize( .BoxItems ); getitem .BoxItems[ rand( .Random ) ], 1; announce "["+strcharinfo(0)+"] has just obtained a ["+getitemname(.BoxItems[ .Random ])+"] from a Custom Box.",0; end; } try this (didnt tested)
  14. if your server is in PK mode you restrict it here conf/battle/misc.cof // For PK Server Mode. It specifies the maximum level difference between // players to let them attack each other. 0 disables said limit. pk_level_range: 70
  15. Cyro

    Add custom box

    the script already set to random, can u post your script?
  16. try changing permissions to 755 or 777 chmod -R 755 /var/www
  17. Cyro

    Add custom box

    if you use this script, u need not to modify anything else
  18. you can change them in guild_skill table in ur db
  19. - script woeshop -1,{ OnInit: bindatcmd "woeshop", strnpcinfo(3) +"::OnWOESHOP"; end; OnWOESHOP: if (getguildmasterid(getcharid(2)) == getcharid(0)) { message strcharinfo(0),"here u go."; callshop "woe_shop",0; end; } message strcharinfo(0),"You must be a guild master to use this command."; end; } //Modify to your liking, by default it sells like the Tool Dealer - pointshop woe_shop -1,woe_points,1750:-1,501:-1,502:-1,503:-1,504:-1,506:-1,645:-1,656:-1,601:-1,602:-1,1065:-1
  20. Cyro

    Add custom box

    since you are confused, use this method 501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "CustomBox"; },{},{} function script CustomBox { setarray .BoxItems[0],501,502,503; set .Random, getarraysize( .BoxItems ); getitem .BoxItems[ rand( .Random ) ], 1; announce "["+strcharinfo(0)+"] has just obtained a ["+getitemname(.BoxItems[ .Random ])+"] from a Custom Box.",0; end; } change your item id, and give it any box sprite in your iteminfo and change items that box gives here .BoxItems[0],501,502,503; ,
×
×
  • Create New...