Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Help with object saving problem.

Help with object saving problem.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1  2 

Posted by Gtr   (38 posts)  Bio
Date Reply #15 on Fri 18 Jun 2004 07:22 AM (UTC)
Message
if ( !str_cmp( arg2, "acc" ) )
{
if ( !can_omodify( ch, obj ) )
return;
obj->acc = value;
if ( IS_OBJ_STAT(obj, ITEM_PROTOTYPE) )
obj->pIndexData->acc = value;
return;
}
if ( !str_cmp( arg2, "ra" ) )
{
if ( !can_omodify( ch, obj ) )
return;
obj->ra = value;
if ( IS_OBJ_STAT(obj, ITEM_PROTOTYPE) )
obj->pIndexData->ra = value;
return;
}
if ( !str_cmp( arg2, "da" ) )
{
if ( !can_omodify( ch, obj ) )
return;
obj->da_level = value;
if ( IS_OBJ_STAT(obj, ITEM_PROTOTYPE) )
obj->pIndexData->da_level = value;
return;
}
if ( !str_cmp( arg2, "fi" ) )
{
if ( !can_omodify( ch, obj ) )
return;
obj->fi_rate = value;
if ( IS_OBJ_STAT(obj, ITEM_PROTOTYPE) )
obj->pIndexData->fi_rate = value;
return;
}
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #16 on Fri 18 Jun 2004 07:31 AM (UTC)
Message
Well... I notice that your writing fi and da, but saving to fi_rate and da_level.

Try putting in ostat something to show you obj->ra and obj->pObjIndex-ra as well, make sure both as changed when setting them, and that both revert 10 afterwards.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Gtr   (38 posts)  Bio
Date Reply #17 on Fri 18 Jun 2004 07:34 AM (UTC)
Message
Heh I added that to ostat when I first installed the new values, that was how I orignaly noticed they dont save and revert to 0.
Top

Posted by Gtr   (38 posts)  Bio
Date Reply #18 on Fri 18 Jun 2004 07:57 AM (UTC)

Amended on Sat 19 Jun 2004 05:56 AM (UTC) by Gtr

Message
Whoa I just noticed.
Statistics:
Acc: 0
Ra: 0
Da: 0 Test Da: 10
Fi: 0

Da is the normal value, and test da is the index. Apprently the index saves..but the other doesnt. I noticed even when I logout, the non-index values resets to 0.

Anyone have any ideas why this might be? I assume I'm missing code somewhere but dont know where to start.

Top

Posted by Gtr   (38 posts)  Bio
Date Reply #19 on Sat 19 Jun 2004 08:44 AM (UTC)

Amended on Sat 19 Jun 2004 08:48 AM (UTC) by Gtr

Message
Oh god, I shouldnt stay up coding so late...I figured out my problem(s). I guess this thread is pretty useless, wouldnt hurt if it was deleted. Thanks for trying to help grev.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #20 on Sat 19 Jun 2004 02:35 PM (UTC)
Message
Nah, always keep topics, just in case someone has the same problem, then they can come back and look it over.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


61,335 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.