![]() |
quest fuction
Hallo all can any on explane me this 2 line's, i work on some quests.
Code:
( myself->GetInventoryInfo(talker,1) * 0.800000 )Code:
talker.flag = ( gg->Rand(2) + 1 );thanks |
First one along with 3 other GetInventoryInfo calls is used to check if player has less than 80% of weight used and less than 80% of max items in inventory allowed - means if he has room for quest items which he might get.
The flag one I'm not sure, probably to decide if he should get quest item this time or not. Show more code. |
Tanks for helping me ! can you give lil more Detail ? thanks
Code:
if( ask == 996 )Code:
if( talker.flag == 1 ) |
Whole this 'if' line is for checking inventory weight and amount as I said, if condition is TRUE then code under it gets executed (usually send message to player that he needs less weight and items) and execution of handler is terminated.
Second part if still not long enough to say what it exactly does. But seems like deciding if he get's quest item. |
| All times are GMT. The time now is 21:40. |