PenUltima Online

It is currently Sat Aug 30, 2008 7:08 am

All times are UTC - 8 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: (POL096-2006-03-17) Lumberjacking/CreateItemInBackPack
PostPosted: Mon Mar 27, 2006 12:37 am 
Offline

Joined: Sat Mar 18, 2006 1:21 am
Posts: 6
Firstly I am not sure how much of a bug this is (only just started back with POL) but I thought it would be better write something about it and be wrong, then to not do anything.

When lumberjacking I recieve the following messages:
"
Select a tree to chop
Unable to create 0 -> a parameter was invalid
You stop lumberjacking
"

I have traced the problem down to the script: lumberJack.src, specifically:

if ( SkillCheck(who, LUMBERJACKING, difficulty) > 0 )
SendSysMessage(who, "debug1.");
var item := CreateItemInBackPack(who, wood_type, 1);
if ( item.errortext )
SendSysMessage(who, "Unable to create "+wood_type+" ->"+item.errortext);
SendSysMessage(who, "debug2. "+wood_type);
return 0;
else
SendSysMessage(who, "You place the log in your pack.");
return 1;
endif
endif

It appears as though the problem is with the creation of the wook in the backpack "CreateItemInBackPack(who, wood_type, 1);". The second debug line outputs "debug2 0" to the client. The variable wood_type may not be being set correctly. I have tried to find a fix but comming back to this after a few years I am not sure where to look (and grep'ing the source didn't help).


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 1:14 am 
Offline

Joined: Sat Feb 04, 2006 9:14 am
Posts: 90
Location: Aman
and wood_type is???
how is it set?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 27, 2006 1:48 am 
Offline

Joined: Sat Mar 18, 2006 1:21 am
Posts: 6
I am not sure, I believe that OSI UO has different wood types on their servers (smilar to different metals) but I am not sure with POL's distro. In any case the wood type is set in the lumberjacking.src file as:

var wood_type := LJ_GetWoodType(who.realm, targ.x, targ.y);

HTH


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 28, 2006 2:41 am 
Offline

Joined: Thu Feb 02, 2006 8:33 am
Posts: 273
You should search that function LJ_GetWoodType
Code:
LJ_GetWoodType(who.realm, targ.x, targ.y);

in your .src file or in an included .inc file.
I don't know that script but i am pretty sure that this function will point to a wood.cfg in the regions folder. Either the above function has failures or perhaps the wood or wood region where you lumber is not defined.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl