# [PROG] changing the value of player

ThwartedEfforts (abakun@rci.ripco.com)
Tue, 19 Sep 1995 15:13:00 PDT

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    Well, is this code _susposed_ to work:

    @verb me:call_as this none this rxd $archwizard
    @program me:call_as
    player = args[1];
    object = args[2];
    verb = args[3];
    args = args[4..length(args)];
    set_task_perms(player);
    return object:(verb)(@args);

    The problem is, the new value of player doesn't survive because of the
     set_task_perms() (assume that args[1] was a non-wizard).  From looking at
     the server code, a set_task_perms() replaces the value that was the original
     permissions, so there is no way to check this and have the value of player
     survive.  Was it intentional to have it act this way?  If so, then being
     able to change the value of player without being able to change the task's
     permissions is kind of useless, since you can't get player and caller_perms()
     to match for non-wizard objects.  Any ideas?
      ______                              __
        /   /  Andy Bakun     _/_      / /  `  /)  /)       _/_
     --/   /_  , , , __.  __  /  _  __/ /--   //  //  __,_  /  _
    (_/   / /_(_(_/_(_/|_/ (_<__</_(_/ (___, //__//__(_) (_<__/_)_
      How much head could a bonehead bone   />  />
        if a bonehead could bone head?     //  //
      http://tecfa.unige.ch:4243/~tef/    </  </