![]() |
|
|
#1 |
|
Архивный участник
Join Date: Feb 2007
Posts: 9
|
I want to change rate or percentage of drop of the items of quest, but encounter in which does not start off is kept this. For example, I want to do that drop of Ancient Parchment in quest Exploration of Giants Cave, Part 1
Sorry for my bad English. Thank |
|
|
|
|
#2 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
make decompile ai learn it make need correction to drop random count done. but. this quest have two step 1 - drop item "Ancient Parchment" from mobs (ai code) 2 - "summon" random items From "Ancient Parchment" (itemdata code) If you need increase chance to random items - check itemdata. It's easy |
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Feb 2007
Posts: 9
|
Ancient Parchment ( Code itemdata.txt)
item_begin etcitem 5944 [q_giants_scroll] single it says to the attributes of the items but in no side the percentage of being drop Sobling, Exploration of Giants Cave Part 1 (Decompile Ai, Sobling.txt) class sobling : citizen { handler: EventHandler TALK_SELECTED(fhtml0,talker) if I do not understand badly only it says that it throws but whereupon percentage does not do and in npcdata.txt not this the item like drop what I need to do is to raise rate, since must be x1 and in server where I want to do the change has exp x7, then people when it trains does not obtain the item. quest to that I do reference is one of which I want to fix example I practice: mob Hamrut throws the items of quest Ancient Parchment. The percentage is of 10%, however I want that this he is 70%. Since I do? |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Look for the gg random and make a new random. Per example:
Code:
if( gg->Rand(2) == 0 )
{
myself->GiveItem1(talker,5416,1);
}
else
{
myself->GiveItem1(talker,5418,1);
}
Code:
if( gg->Rand(1) == 0 )
{
myself->GiveItem1(talker,5416,1);
}
else
{
myself->GiveItem1(talker,5418,1);
}
You'd have to look for that part of the code in the class for that npc in ai.obj |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
gg I have no idea but:
rand(X) means: random(X) so if i put rand(10) it means I'm asking for a random number between 0 and 10. rand(1)=0 or 1 rand(2)=0, 1 or 2 so... the probabilities of rand(1) == 0 are 50% and the probabilities of rand(2) == 0 are 33% |
|
|
|
|
#7 |
|
Архивный участник
Join Date: May 2006
Posts: 135
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Feb 2007
Posts: 9
|
That already habia seen, but that random that it shows to me is when npc changes the items to you of quest by recipes.
I believe that I am not explaining myself well Quest is thus: You go between level 55 and 63, you speak and you accept it. It requests to you that you kill some mobs specific. When the bushes you can throw items of quest that qualifies the second part (drop lowest) or the Ancient Parchment, that when to open ba to it giving volumes you of a book. When together 5 volves to speak with npc and depending on the book that you find completed at random gives recipe you of between 2. I what I want he is that when drop of Ancient Parchment 1/2 or 1/3 by mob fence to kill mob and not 1/20. I believe that he is very complicated what I request
|
|
|
|
|