Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 06.02.2007, 05:05   #1
vladimir
Архивный участник
 
Join Date: Feb 2007
Posts: 9
Default [Help] Change rate quest

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
vladimir is offline  
Old 06.02.2007, 07:17   #2
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by vladimir View Post
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
find npc what need for drop this item in quest
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
HF is offline  
Old 06.02.2007, 10:45   #3
vladimir
Архивный участник
 
Join Date: Feb 2007
Posts: 9
Default

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?
vladimir is offline  
Old 06.02.2007, 11:21   #4
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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);
			}
you can make it:
Code:
			if( gg->Rand(1) == 0 )
			{
				myself->GiveItem1(talker,5416,1);
			}
			else
			{
				myself->GiveItem1(talker,5418,1);
			}
that would give 50% chances to getting any of those items instead of 33%/66%

You'd have to look for that part of the code in the class for that npc in ai.obj
m4rk is offline  
Old 06.02.2007, 17:42   #5
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by m4rk View Post
Look for the gg random and make a new random. Per example:
...
that would give 50% chances to getting any of those items instead of 33%/66%

You'd have to look for that part of the code in the class for that npc in ai.obj
what is
"gg->Rand(1)" and "gg->Rand(2)"?
HF is offline  
Old 06.02.2007, 17:54   #6
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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%
m4rk is offline  
Old 06.02.2007, 19:18   #7
Bloodust
Архивный участник
 
Join Date: May 2006
Posts: 135
Default

Bling bling randomize !!!!


http://c-faq.com/lib/randrange.html
Bloodust is offline  
Old 06.02.2007, 19:21   #8
vladimir
Архивный участник
 
Join Date: Feb 2007
Posts: 9
Default

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
vladimir is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 21:00.