Jump to content

Reborn

Members
  • Posts

    290
  • Joined

  • Last visited

Everything posted by Reborn

  1. hi everyone, can anyone help me fixing this part of my script? getpartymember(getcharid(1),0); getpartymember(getcharid(1),1); getpartymember(getcharid(1),2); for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { set .@nb,query_sql("SELECT * FROM char_reg_num_db WHERE char_id = "+$@partymembercid[.@i]+"", .@charid,.@key$,.@index,.@value ); if (( .@charid != $@partymembercid[.@i] ) && ( .@key$ != "BloodQuest" ) && ( .@value != 6 )){ mes "I'm sorry but one or some of your party member is not allowed to participate in Blood Quest."; close; } } mes "Which battlefield will you attempt?"; if ( BloodQuest == 6 ) { switch(select("It's Bloody Rain")){ case 1: .@prty = getcharid(1); set .PQStatus,1; donpcevent "BloodyRain::OnStart"; warpparty "hell", 112, 136, .@prty, "prontera"; end; } } what i am trying to do here is when the party leader click the npc and tried to start the quest the whole party will be warp to the quest map if the party meets the requirement of the NPC. The only requirement is if the members was able to talk to a pre-requisite npc and get the variable of ( BloodQuest == 6 ) the whole party will be able to begin the quest, however if some of the member did not meet the requirement the party will not be able to start the quest until the member will be able to talk to a pre-requisite npc or remove from the party. I hope someone can help me..
  2. @Emistry I tried to use it however it only give the Variable on 1 player and once they do the quest again it gives the others the variable automatically while they are not yet done doing the quest. This is the part of my script wherein the Boss is summoned and how the script work once the Boss is killed. Hope this one can help you solve the problem. OnFinalRound: monster "poring_w02",97,96,"--ja--",3003,1,"BloodyRain::OnMyFinalBossDead"; end; OnMyFinalBossDead: mapannounce "poring_w02","Satan: Nooooooooooo.", bc_map,0xFF0000; .@party_id = getcharid(1); getpartymember .@party_id, 1; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymemberaid[.@i]; if ( strcharinfo(3) == "poring_w02" ) set BloodyQuest,7; set .MobPetDead,0; set .PR_Round,0; set getvariableofnpc(.PQStatus,"Tree of Blood"),getvariableofnpc(.PQStatus,"Tree of Blood") - 1; } } detachrid; sleep 5000; warpparty "prontera", 152, 150, .@party_id, "poring_w02"; end;
  3. @Emistry if we use set Flower,1; it will saved in char_reg_num right and also the $@partymemberaid it will get the account id of a player and there is no account id column in char_reg_num table.
  4. Can anyone fix this for me please.. What I am doing is when the whole party killed a boss quest all of the member will have set Flower,1; and my current script that I have is .@party_id = getcharid(1); getpartymember .@party_id, 1; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { if ( isloggedin( $@partymemberaid[.@i], $@partymembercid[.@i] ) ) { attachrid $@partymembercid[.@i]; if ( strcharinfo(3) == "poring_w03" ) set Flower,7; sleep 5000; warpparty "prontera", 152, 150, .@party_id, "poring_w03"; } } end; and what my script doing is only the one who killed the boss is the one was able to get the set Flower,1; What I need is all of the party members should have set Flower,1; Please help me guys.. Thanks in advance
  5. thanks capuche. Its working that way I like it however this script is getting all the equipment in players inventory. How can I make this script get a certain type of equipement in players inventory? Like when a player has a 3 Silk Robe (ID:2321) and 5 Shoes (ID:2403) in his inventory. When the player clicks this NPC, all of his 3 Silk Robe and 5 Shoes in his inventory will be removed and he will get an item in exchange. 1 Silk Robe (ID:2321) = 1 or 3 Red Potion 1 Shoes (ID:2403) = 5 or 8 White Potion its not going to be a rand function (rand(1,3) or rand(5,8)). It should be 1 OR 3 got Red Potion and 5 OR 8 for White Potion Only Silk Robe (ID:2321) and Shoes (ID:2403) is the one that will be removed. not included the other equipments in players inventory.
  6. Hi everyone. Does anyone know how to do this? Basically what I need is a script that can check the item equipment of a player which is not equip and remove it all from the players inventory. example: A player has a 3 Silk Robe (ID:2321) and 5 Shoes (ID:2403) in his inventory. When the player clicks this NPC, all of his 3 Silk Robe and 5 Shoes in his inventory will be removed and he will get an item in exchange like Red Potion. I am tying to use this one but I cant seem to make it work. It can only remove an item one at a time which is not what I want. if( countitem(2321) == 1 ){ getinventorylist; for (set .@i, 0; .@i < @inventorylist_count; set .@i, .@i + 1 ) if ( @inventorylist_id[.@i] == 2321 ) set .count01, @inventorylist_amount[.@i]; delitem 2321, .count01; getitem 501,.count01; } if( countitem(2403) == 1 ){ getinventorylist; for (set .@i, 0; .@i < @inventorylist_count; set .@i, .@i + 1 ) if ( @inventorylist_id[.@i] == 2403 ) set .count01, @inventorylist_amount[.@i]; delitem 2403, .count01; getitem 501,.count01; } I hope someone can help me with this one...
  7. is it going to be per instance map or the whole map itself? (copied or original map) Cause this will be an instance.
  8. All character that goes in to this map only or all characters that will be logging in to the server?
  9. @Skorm Is it going to be per character? I dont want this variable remove to each character everytime someone goes in to this map.
  10. Hi everyone. I am doing a custom Instance but I am having a problem with this one. "@" - A temporary variable attached to the character. They disappear when the character logs out. Is there a way to remove this variable to a specific character when he/she go inside a map? let say for exaample "prontera", instead of logging out to remove this variable can it be possible to remove this when they go to a specific map?
  11. Bumping to this topic
  12. @Skorm Thanks for helping me, however when I tried to put this script to the NPC being attached to their instance ID it seems not working. I am getting an error message. [Warning]: script_get_val: cannot access instance variable ''instance_members', defaulting to 0 [Warning]: script_get_val: cannot access instance variable ''instance_members', defaulting to 0 [Error]: script_set_reg: cannot write instance variable ''instance_members', NPC not in a instance! [Debug]: Source (NPC): PartyPlanner#RDC at e@gef (0,0) [Warning]: script_get_val: cannot access instance variable ''instance_members', defaulting to 0 That is the exact message and error I am getting. The one you made is attached to an instance NPC i tried to put it in a Visible and Invisible NPC but still not working..
  13. Hi everyone. I've been searching this one but I can't really find it. How can the script identify that all party member is dead? Cause this is what I am trying to do. The whole party will enter an instance. If the whole party member is dead the script will trigger it and the whole party will be warped out from the map after 2 mins. I hope some knows how to do this. Thanks in advance :D
  14. Hi everyone can any help me on how to figure this out? All party member will start having 20 tickets. If they accept a certain task all party members ticket will reduced by one and the gettimetick will attach to each party member. please help me fix this. Thanks .@party_id = getcharid(1); getpartymember .@party_id, 1; getpartymember .@party_id, 2; for ( .@i = 0; .@i < $@partymembercount; .@i++ ) { set .@nb,query_sql("SELECT ticket,time FROM rdc WHERE account_id = "+$@partymemberaid[.@i]+"", .ticket,.time ); if ( .ticket[.@i] == 20 ){ set .time[.@i],gettimetick(2) + 604800; set .ticket[.@i],.ticket[.@i] - 1; query_sql("UPDATE `rdc` SET `time` = '"+.time[.@i]+"', `ticket` = '"+.ticket[.@i]+"' WHERE account_id = "+$@partymemberaid[.@i]+""); } else { set .ticket[.@i],.ticket[.@i] - 1; query_sql("UPDATE `rdc` SET `ticket` = '"+.ticket[.@i]+"' WHERE account_id = "+$@partymemberaid[.@i]+""); } callfunc "InstDrake"; }
  15. Hi Emistry when I tried the code i got this error "parse_line: expect command, missing function name or calling undeclared function". Thanks for trying to help me though.
  16. Reborn

    SQL

    Please close this topic, I was able to find a way on how to make. Thanks..
  17. Reborn

    SQL

    Hi everyone, how can I get the account ID of each accounts when they login and attach their account ID in SQL, and once their account ID is already in SQL and when they relog, their account ID will no longer be attached to the SQL. Meaning their account ID will only be attached to the SQL once. Please help me out with this.
  18. Hi everyone can anyone help me make a script for this one? Once the player wear this type of accessory it will give some additional stats to the homunculus example: Increases Homunculus STR and VIT by 15 Then once the player unequip the accessory it will remove the stats to the homunculus as well. Thanks in advance
  19. can you please give an example? I dont know how to do it nor to apply it. Please guide me
  20. Hi everyone how can I restrict a player to equip a specific gears or weapons to a map? Let say I want to restrict the player by wearing the Angra Manyu to ordeal_1-2 map.Or if the player enters the map while wearing it, the Angra Manyu will automatically unequip and they will not be able to equip it as long as the player is inside the map.Please help me out on how to do this..
  21. Hi guys, Does anyone knows this map? Can anyone share this? Please... bump
  22. If I access the website shop and the item info that's no info there is no error appearing on it
×
×
  • Create New...