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.
hi everyone,
can anyone help me fixing this part of my script?
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..
Share this post
Link to post
Share on other sites