Jump to content
  • 0

certain player can do the quest and certain player cant do


madtoyz

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

//Thread Merchant ------
alberta,65,123,6 script Man#dbq 85,{
if(DANZO_QUEST == 3 && $@beardMobD) goto L_KILLED;
if(DANZO_QUEST > 3) goto L_DONE;
mes "[Thread Merchant]";
mes "ARGGG!! I can never get my stuff to Al de Baran!";
mes "I keep getting mobbed by some bugs.";
mes "They steal all my supplies and ^8080FFThread^000000.";
next;
mes "[Thread Merchant]";
if(DANZO_QUEST != 3) mes "What am I to do?";
if(DANZO_QUEST != 3) close;
if($@danzomob > 0) mes "Kill! Kill them already!!!";
if($@danzomob > 0) close;
mes "Are you here to help me?";
emotion 1;
next;
menu "Yes",-,"No",M_NO;
mes "[Thread Merchant]";
mes "Oh thank the Gods!";
mes "If you can only just kill the bugs I would be able to make my delivery.";
next;
mes "[Thread Merchant]";
mes "Oh NO! Here they come!!";
emotion 19;
donpcevent "BRDQ_MOBS::OnStart";
close;
L_KILLED:
set $@danzoMobD,0;
mes "[Thread Merchant]";
mes "Thank you for killing the Thief Bugs.";
mes "As a token of my gratitude here is a box full of ^8080FFThread^000000.";
set DANZO_QUEST,4;
close;
L_DONE:
mes "[Thread Merchant]";
mes "Thank you again!";
emotion 15;
close;
M_NO:
mes "[Thread Merchant]";
mes "What to do...";
close;
}
//mobsummons -------
alberta,1,1,1 script BRDQ_MOBS -1,{
OnStart:
set $@danzoMob,10;
set $@danzoMobD,0;
monster "alberta",65,120,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
monster "alberta",66,120,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
monster "alberta",67,120,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
monster "alberta",68,120,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
monster "alberta",66,121,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
monster "alberta",67,121,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
monster "alberta",68,121,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
monster "alberta",66,122,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
monster "alberta",67,122,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
monster "alberta",68,122,"Thef Bug Male",1054,1,"BRDQ_MOBS::OnDie";
end;
OnDie:
set $@beardmob, $@beardmob - 1;
if($@beardmob > 0) end;
set $@beardMobD,1;
end;
On1201:
On0001:
set $@beardMob,0;
set $@beardMobD,0;
end;
}

have player do this quest got kill the mob,

and got others cant,and npc say

L_DONE:
mes "[Thread Merchant]";
mes "Thank you again!";
emotion 15;
close;

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

You're having this problem because, your using a global variable to confirm a kill and count down. You need to change that to a player variable so that only the player doing the quest is affected. I'm only giving this bit of information because it's a support topic. I'm assuming you want to learn.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

You're having this problem because, your using a global variable to confirm a kill and count down. You need to change that to a player variable so that only the player doing the quest is affected. I'm only giving this bit of information because it's a support topic. I'm assuming you want to learn.

ya,so how to do it ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  142
  • Reputation:   10
  • Joined:  01/21/12
  • Last Seen:  

can show me how to edit the script ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...