PDA

View Full Version : Fix for wishing potion bug?


rodier
19.08.2005, 16:46
Hi all
Please can anybody help me, how to fix bug with wishing potion?
If you have get that potion and then full your inventory.. matilda make your wishes.. always.. nonstop.. simply you can repeat that quest only with 1 potion...
how to stop this? maybe routine that check for full inventory? I maybe can make it but dont understand fully ai.obj - dont know where to put it..

thanks for help

Digital
19.08.2005, 16:51
the bug is with inventory being full i think?
u just have to reverse the procedure.
to check that the player have sufficient space for it :)

rodier
19.08.2005, 17:22
hmm :-( can u help me how? paste here right ai.obj code? if u have? ..I will be glad thanks :-D

flakka
19.08.2005, 17:33
Edited: rodier found the solution. Read below. :)

rodier
19.08.2005, 17:33
from ragezone..


I've the same problem and first i disable the NPC, but this solution is not good, so i try to convert the Wish Potion in Quest object, but people can use the exploit again but full up the Quest inventory.
After some reflection and some test i find the perfect Patch.

What to do is to put the Wish Potion "stackable".

Edit Itemdata.txt (server side)

*** Find ***
item_begin etcitem 3467 [q_wish_potion] item_type=etcitem slot_bit_type={none** armor_type=none etcitem_type=none blessed=0 weight=60 default_action=action_none consume_type=consume_type_normale initial_count=1 maximum_count=1

*** replace by ***
item_begin etcitem 3467 [q_wish_potion] item_type=etcitem slot_bit_type={none** armor_type=none etcitem_type=none blessed=0 weight=60 default_action=action_none consume_type=consume_type_stackable initial_count=1 maximum_count=20

Edit etcitemgrp.txt (client side \System\)

*** find ***
item_begin object_id=3467 object_name=[q_wish_potion] drop_type=0 drop_anim_type=3 drop_radius=2.7 drop_height=5 drop_mesh={[dropitems.drop_sack_m00]** drop_texture={[dropitemstex.drop_sack_t00]** icon={[icon.etc_lesser_potion_blue_i00]** mesh={[none]** texture={[none]** crystallizable=0 drop_sound=[ItemSound.itemdrop_sack] equip_sound=[none] etcitem_type=none weight=60 consume_type=consume_type_normal material_type=paper crystal_type=none durability=0 item_end

*** replace by ***
item_begin object_id=3467 object_name=[q_wish_potion] drop_type=0 drop_anim_type=3 drop_radius=2.7 drop_height=5 drop_mesh={[dropitems.drop_sack_m00]** drop_texture={[dropitemstex.drop_sack_t00]** icon={[icon.etc_lesser_potion_blue_i00]** mesh={[none]** texture={[none]** crystallizable=0 drop_sound=[ItemSound.itemdrop_sack] equip_sound=[none] etcitem_type=none weight=60 consume_type=consume_type_stackable material_type=paper crystal_type=none durability=0 item_end

And to be sure, i do the same for the "World Map" and "Map of Elmor", like that no way to use this kind of exploit so easily.

If you dont do it in the client side, it's still working but the player will not know how many item (Wish Potion of Maps) he'll have in his inventory.

(sorry for my english)

flakka
19.08.2005, 17:39
OK - that's scary. You posted the same exact time I did. :shock:

I'll remove mine since it's solved then. :D

rodier
19.08.2005, 17:46
HEHE ;-DD that is lol same time.. same solution ;-D

rodier
19.08.2005, 17:47
but as I read this solution is not 100% because people can simply full quest item inv and then repeat that bug again :-( .. better will be insert in to right place in ai.obj routine that check for inventory slots :(

Sauron
19.08.2005, 18:43
this came to my mind some days ago.

if(OwnItemCount(talker, bleh) == 0)
{
GiveItem1(talker, bleh, 1);
}
delay 1 sec
DeleteItem1(talker, bleh, OwnItemCount(talker, bleh));
delay 1 sec
if(OwnItemCount(talker, bleh) == 0)
{
inventory is not full.
proceed with quest
}
else
{
inventory full
showpage(talker, "cheater.htm");
}

rodier
19.08.2005, 23:44
hehe that looks cool but who know in which place @ matild I must paste it?

OnlyOne
20.08.2005, 00:03
hehe that looks cool but who know in which place @ matild I must paste it?

thats just idea ;) you need to write this into ai language

rodier
24.08.2005, 02:02
;-(( pls I think there must be any fix....... or every server havedisabled it? I think this quest is coooool ... is there any quest like this? with random moneys but repeatable and is long?

I dont understand that bug - people with full inventory/quest inventory have wish potion.. and matilda don't grab it back.. why?

why when full inventory = matilda dont grab wish potion from inventory? I think we can fix it..

Sauron
24.08.2005, 02:12
when the inventory is full, "func_call 80 // func[DeleteItem1] " doest work. use my fix it should work.

rodier
24.08.2005, 02:26
where is your fix? That idea writed in C++ ? hehe sorry but I dont understand ai.obj too much ;-( dont know how to write it to ai.boj and WHERE exactly.. but the right code for this will be great work..

An@BoL
15.09.2005, 20:19
On my way to understanding ai.obj I've found, that somewhere exists a tool "NPC AI Script Compiler". Does any1 know smth about it or maybe where to find it?

LDragonL
24.09.2005, 12:35
If there is such a tool, i want it too.
Just like the official geodata editor wich need a serial to use it :( wich we don't have.

demon
26.09.2005, 20:03
post the editor, we'll crack it lol

SOnick
26.09.2005, 20:13
fix for wishing potion bug - tested by me - all working.
https://postpacific.loc-online.com/forum/viewtopic.php?p=17960&sid=303ed380fe76a4069060f33ee331de12#17960