Re: [LONG][CODE][NEWBIE]Help with object table

From: Peter d (death_comes_to_all@hotmail.com)
Date: 08/24/02


>What you need to do, is to move the marked line above to the part
>where OEDIT_PROMPT_APPLY skips out on a '0':
>   case OEDIT_PROMPT_APPLY:
>-    if ((number = atoi(arg)) == 0)
>+    if ((number = atoi(arg)) == 0) {
>+      GET_OBJ_LEVEL(OLC_OBJ(d)) = change_level_for_stats(d);
>+      /*break skips OEDIT_PROMPT_APPLY*/
>       break;
>+    }
>     else if (number < 0 || number > MAX_OBJ_AFFECT) {
>       oedit_disp_prompt_apply_menu(d);
>       return;
>     }
>     OLC_VAL(d) = number - 1;
>     OLC_MODE(d) = OEDIT_APPLY;
>     oedit_disp_apply_menu(d);
>     return;

alright, it works like a charm :) thanx
now to the next step.. how do i combine the stat function with another
function like change_level_for_ac()
so that they don't cancel each other out.. or add to much.?

_________________________________________________________________
På MSN hittar du det roliga, intressanta och användbara på internet:
http://www.msn.se

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT