Jump to content

powkda

Members
  • Posts

    89
  • Joined

  • Last visited

Everything posted by powkda

  1. I did this but it didn't work, did I make a mistake somewhere? case 1: if(!countitem(31000))goto noanel; getinventorylist; for(set .@i,0; .@i<@inventorylist_count; .@i++){ if(@inventorylist_id[.@i] == 31000 && !@inventorylist_equip[.@i]){ delitem @inventorylist_id[.@i],1; getitem 30001,5; next; mes "^FF0000["+strnpcinfo(1)+"]^000000"; mes "Aqui está a sua recompensa."; close; } else if(.@i==inventorylist_count){ close; } } end;
  2. Good night, I'm having a big problem with the delitem, it is removing the item that is equipped, how do I make it only count and delete the item that is in the inventory? case 1: if(countitem(31000)<1)goto noanel; delitem 31000,1; getitem 30001,5; next; mes "^FF0000["+strnpcinfo(1)+"]^000000"; mes "Aqui está a sua recompensa."; close; end;
  3. I made this item to hide the headgear, but if the character relogged the items again, I wanted it to only appear if the character changed the equipment, how should I do it? 30130,Adesivo_Magico,Adesivo Magico,2,1,,500,,,,,0xFFFFFFFF,7,2,,,,,,{ changelook LOOK_HEAD_TOP, 0; changelook LOOK_HEAD_MID, 0; changelook LOOK_HEAD_BOTTOM, 0; },{},{} Thank you in advance for your attention, and you will definitely have my like
  4. I have this problem, did anyone manage to solve it?
  5. There was no more error when loading, but it is not preventing the player of the enemy guild from staying inside the castle outside of war time, when this message enters the log: Can you help me with this error I got?
  6. Thank you so much for helping me I got this error here need '(' 639 : 640 : setmapflag(.map$, MF_LOADEVENT); 641 : end; 642 : 643 : OnPCLoadMapEvent: * 644 : if (.map$ == strcharinfo(3) && !(agitcheck() || agitcheck2() || agitcheck3')') { 645 : .@castle_guild_id = getcastledata(.map$, CD_GUILD_ID); 646 : if (.@castle_guild_id && getcharid(2) != .@castle_guild_id) { 647 : mes "You aren't allow to enter this area."; 648 : close2; 649 : warp "SavePoint", 0, 0;
  7. How to block enemy guilds from entering the castle already conquered by other guilds outside of war time? Can someone help me? thank you so much
  8. I tried to do as follows function script F_Excalibur { if(agitcheck() || agitcheck2() || agitcheck3()){ bonus bBaseAtk,2600; end; } bonus bBaseAtk,2600; bonus2 bHPDrainRate,1000,100; } but it wasn't very bad I want that during woe I was like: bonus bBaseAtk,2600; and when you're not having woe it looks like this: bonus bBaseAtk,2600; bonus2 bHPDrainRate,1000,100; thank you so much for helping me
  9. function script F_Excalibur { if (!agitcheck() && !agitcheck2() && !agitcheck3()) { bonus bBaseAtk,2600; end; } else { bonus bBaseAtk,2600; bonus2 bHPDrainRate,1000,100; end; } } I wanted it to give an X bonus during woe and outside woe time to give a Y bonus I tried to do it that way more without success.
  10. how do i disable a bonus from equipment during war? for example.. Weapon of +10 attack, but when the war starts this bonus is deactivated. Can anyone help me? Thanks in advance for your attention
  11. when I buy the apple at the shop, it doesn't deduct the points, nor does it check if I have enough points. poring_c01,104,100,4 script VFP Manager 62,{ function getPoints; set .@n$, "[VFP Manager]"; set .@settings, 1; // 0 = item, 1 = shop set .@itemReward, 501; // if settings is set to item set .@convertRate, 2; // 2 Vote Points for 1 Red Potion set .vp, getPoints(getcharid(3)); switch (.@settings) { case 0: mes .@n$; mes "Would you like to convert your "+ .vp +" Vote Points?"; mes "^ff0000The current convert rate is "+ .@convertRate +" Vote Points for 1 "+ getitemname(.@itemReward) +"."; next; menu "Yes", L_Convert, "No", -; mes .@n$; mes "Bye, then."; break; case 1: mes .@n$; mes "You have ^ff0000"+ .vp +"^000000 Vote Points."; mes "Would you like to go shopping?"; next; menu "Yes", -, "No", L_Goodbye; mes .@n$; mes "Have fun shopping!"; callshop "votepoints_shop",1; npcshopattach "votepoints_shop"; end; } L_Goodbye: mes .@n$; mes "Goodbye, then."; close; L_Convert: if (.vp < .@convertRate) goto L_VotePointsTooLow; mes .@n$; mes "How much Vote Points would you like to convert?"; next; menu "All", L_ConvertAll, "Input Amount", L_ConvertAmount; L_ConvertAmount: input .@convert; if (.@convert > .vp) goto L_VotePointsTooLow; set .vp, ((.vp - .@convert) + (.@convert % .@convertRate)); set .@convert, (.@convert / .@convertRate); getitem .@itemReward, .@convert; query_sql("UPDATE cp_createlog SET votepoints = "+ .vp +" WHERE account_id = "+ getcharid(3)); mes .@n$; mes "You have received "+ .@convert +"x "+ getitemname(.@itemReward) +"."; mes "Your current Vote Points is "+ .vp; close; L_ConvertAll: set .@convert, (.vp / .@convertRate); set .vp, (.vp % .@convertRate); getitem .@itemReward, .@convert; query_sql("UPDATE cp_createlog SET votepoints = "+ .vp +" WHERE account_id = "+ getcharid(3)); mes .@n$; mes "You have received "+ .@convert +"x "+ getitemname(.@itemReward) +"."; mes "Your current Vote Points is "+ .vp; close; L_VotePointsTooLow: mes .@n$; mes "Your Vote Points is too low. Come back when you have the minimum amount of Vote Points."; close; function getPoints { set .@account_id, getarg(0); set .@count, query_sql("SELECT votepoints FROM cp_createlog WHERE account_id = "+ .@account_id, .@votepoints); return .@count ? .@votepoints : 0; } OnBuyItem: set .@cost,0; for(set .@i,0; .@i<getarraysize(@bought_nameid); set .@i,.@i+1) for(set .@j,0; .@j<getarraysize(.itemShop); set .@j,.@j+2) if (@bought_nameid[.@i] == .itemShop[.@j]) { set .@cost, .@cost+(.itemShop[.@j+1]*@bought_quantity[.@i]); break; } mes .@n$; if (.@cost > .vp) mes "You don't have enough Vote Points."; else { for(set .@i,0; .@i<getarraysize(@bought_nameid); set .@i,.@i+1) { getitem @bought_nameid[.@i], @bought_quantity[.@i]; dispbottom "Purchased "+@bought_quantity[.@i]+"x "+getitemname(@bought_nameid[.@i])+"."; } set .vp, .vp - .@cost; query_sql("UPDATE cp_createlog SET votepoints = votepoints - "+ .@cost +" WHERE account_id = "+ getcharid(3)); mes .@n$; mes "Deal completed."; mes "You now have ^ff0000"+ .vp +"^000000 Vote Points."; emotion e_cash; } set .@cost,0; deletearray @bought_nameid[0], getarraysize(@bought_nameid); deletearray @bought_quantity[0], getarraysize(@bought_quantity); close; OnInit: setarray .itemShop[0], 501,2,607,5; // <ITEM_ID>,<PRICE>,... npcshopdelitem "votepoints_shop",512; for(set .@i, 0; .@i < getarraysize(.itemShop); set .@i, .@i+2) npcshopadditem "votepoints_shop", .itemShop[.@i], .itemShop[.@i+1]; end; } - shop votepoints_shop -1,512:1 <?php if (!defined('FLUX_ROOT')) exit; return array( 'DefaultThemeName' => 'default', 'PointsType' => "vote", // credit, vote, cash 'DefaultIntervalVoting' => 12, 'DefaultVotePoints' => 0, 'VoteNameMax' => 15, 'VoteNameMin' => 6, 'VotePointsMin' => 0, 'VotePointsMax' => 999, 'VoteIntervalMin' => 1, 'VoteIntervalMax' => 24, 'AllowedImgType' => array('jpg', 'jpeg', 'png', 'gif'), 'MaxFileSize' => 500, // KB, 'ImageMaxWidth' => 150, 'ImageMaxHeight' => 150, 'ImageUploadPath' => "votes", // /themes/default/img/votes/ 'EnableIPVoteCheck' => true, 'AlphaNumSpaceRegex' => "/^[A-Za-z0-9_\s]+$/", 'MenuItems' => array( 'Other' => array( 'Vote for Points' => array( 'module' => 'voteforpoints' ) ) ), 'SubMenuItems' => array( 'voteforpoints' => array( 'index' => 'Vote', 'add' => 'Add Voting Site', 'list' => 'List Voting Sites', 'log' => 'Voters Log', ) ), 'FluxTables' => array( 'vfp_logs' => 'cp_vfp_logs', 'vfp_sites' => 'cp_vfp_sites', 'cashpoints' => 'acc_reg_num' ) ) ?> Can someone help me please
  12. Good afternoon, I got the dice event here, but it's giving the following error on the following line: You have been issued a warning. Before you can post again, you must acknowledge the warning. .@size = getmapunits(BL_PC,.@players,"quiz_02"); how could I reverse this error?
  13. Good night, I'm having trouble logging in, when I select the server to go to the chars it doesn't connect, what can it be? it was the folders that I had just removed the comment and had not changed the ip 127.0.0.1
  14. I restarted the system, the error still persists
  15. I'm having trouble compiling and connecting the emulator /opt/rh/devtoolset-7/root/usr/libexec/gcc/x86_64-redhat-linux/7/ld: cannot find /usr/lib64/libstdc++.so.6 collect2: error: ld returned 1 exit status make[1]: *** [login-server] Error 1 make[1]: Leaving directory `/root/EMULADOR/src/login' make: *** [login] Error 2 I've been trying to solve it for days and I can't, can anyone help me?
  16. In GM and normal, if I configure to show the% of HP appears the emp also In the GM and Player account the hp appears, I did the hidemobhpbar test in prontera, and even then the mob hp appeared in prontera
  17. I have the same problem, Emperium% HP is showing
  18. add item information directly to iteminfo within the system
  19. I tried to leave the sprite name as follows but also unsuccessful 어세신_남_31510_검 어세신_남_31510_단검 어세신_남_31510_도끼 someone who can give me a light to solve this problem? and how can I make the customer read differently?
  20. Good night family, I need some help ... add a custom weapon for the assassin, i have her sprite for when assassin equips both weapons, but when i equip both the sprite doesn’t appear, how do i make the sprite appear when he equips these two custom weapons? I took this image on the net as an example, two weapons equipped but there is no sprite
  21. Thanks, but it's giving the same problem, when the war is active, the members of the other guilds are unable to enter the castle, they are teleported
  22. Good night, thanks for the help friend, but it is not working, member of another guild is entering the gp map, which should block from what I saw you put it in order not to check during the war, but then players from another guild will enter the map that they cannot, only those with the castle can enter, regardless of whether they are having the war or not Can you help me friend? let only guild players in the castle can enter the map?
  23. I tried as follows, the problem is that in the castle at the time of the war the other guilds cannot enter - script Guarda -1,{ OnPCLoadMapEvent: set .@GID, GetCastleData("prtg_cas01",1); if (getcharid(2) == .@GID) { dispbottom "[Sala do Clã]: Seja bem vindo a Sala do Clã"; end; } else { dispbottom "[Sala do Clã]: Apenas os Guerreiros que conquistaram o Castelo de Kriemhild podem estar neste lugar!"; warp "kalindor",146,169; end; } } gp mapflag loadevent
  24. good night friends, i want the npc to check if the player on the map is from the guild with the card, if it isn’t expelled from the map, i tried it in some ways here but without success
×
×
  • Create New...