Crossfire Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CF: cheating by mandrake root
Since 0.94.0, players cannot create valuable food by the spell of
"create food".
But still we can get much money be using this spell.
How to get much money:
1. go to shop and buy a mandrake root(this is valueable).
2. 'invoke create food of mandrake_root more than 2 times.
3. pick up mandrake roots(this is not valuable).
4. then two sort of mandrake_root will be merged,
and you get a lot of valuable mandrake roots.
5. sell mandrake_roots.
This is bug of merging objects.
And the following patch seems to work properly.
*** common/object.c.org Sat Mar 14 03:00:33 1998
--- common/object.c Sat Mar 14 03:00:21 1998
***************
*** 109,115 ****
(ob1->immune != ob2->immune) ||
(ob1->vulnerable != ob2->vulnerable) ||
(ob1->magic != ob2->magic) ||
! (ob1->slaying != ob2->slaying))
return 0;
switch (ob1->type) {
--- 109,116 ----
(ob1->immune != ob2->immune) ||
(ob1->vulnerable != ob2->vulnerable) ||
(ob1->magic != ob2->magic) ||
! (ob1->slaying != ob2->slaying) ||
! (ob1->value != ob2->value))
return 0;
switch (ob1->type) {
***************
*** 1176,1182 ****
if (CAN_MERGE(op,top))
{
top->nrof+=op->nrof;
! CLEAR_FLAG(top,FLAG_STARTEQUIP);
op->weight = 0; /* Don't want any adjustements now */
remove_ob(op);
free_object(op);
--- 1177,1183 ----
if (CAN_MERGE(op,top))
{
top->nrof+=op->nrof;
! /*CLEAR_FLAG(top,FLAG_STARTEQUIP);*/
op->weight = 0; /* Don't want any adjustements now */
remove_ob(op);
free_object(op);
***************
*** 1354,1360 ****
if (CAN_MERGE(op,tmp))
{
op->nrof+=tmp->nrof;
! CLEAR_FLAG(op,FLAG_STARTEQUIP);
remove_ob(tmp);
free_object(tmp);
}
--- 1355,1361 ----
if (CAN_MERGE(op,tmp))
{
op->nrof+=tmp->nrof;
! /*CLEAR_FLAG(op,FLAG_STARTEQUIP);*/
remove_ob(tmp);
free_object(tmp);
}
--------------------------------------------------------------------------
Seikoh Nishita | Dep't. of Information & Computer Sciences
| Faculty of Engineering Science
[e-mail] | Osaka University
s-nisita@ics.es.osaka-u.ac.jp | Toyonaka, Osaka 560, Japan
[to unsubscribe etc., send mail to crossfire-request@ifi.uio.no]