Prison Return Scroll

If you want to help us or give some corrections / codes, put it here ;)

Moderators: osRose dev team, ospRose dev team, osiRose dev team, Moderators

Prison Return Scroll

Postby rl2171 on Fri Aug 24, 2007 5:32 pm

Here is another one to add for the Sikuku Underground Prison.

One interesting thing is if I have the scrolls when I log in, it says I have a invalid or empty item.

The code as far as I can see should work, but I am still getting an error of:

[WARNING]: [8916]Invalid Item, Item: 365. - Type: 10

In the Extrafunctions.cpp look for

  1.  
  2.             else//Return Scrolls
  3.             if( (useitem->itemnum>349 && useitem->itemnum<355) ||
  4.                 (useitem->itemnum>359 && useitem->itemnum<365) )
  5.  


Change to:

  1.  
  2.             else//Return Scrolls
  3.             if( (useitem->itemnum>349 && useitem->itemnum<355) ||
  4.                 (useitem->itemnum>359 && useitem->itemnum<366) )
  5.  


Note prison scroll is item 365

In same file look for:

  1.  
  2.                     //Shady Jungle
  3.                     case 364:
  4.                         useitem->usetype = 62;
  5.                         useitem->usevalue = 57515196;                        
  6.                     break;                    
  7.  


Add after it:

  1.  
  2.                     //Sikuku Underground Prison - added by rl2171
  3.                     case 365:
  4.                         useitem->usetype = 63;
  5.                         useitem->usevalue = 54004440;                        
  6.                     break;                    
  7.  


For those who do not know, the prison scroll does not place you in the prison, but just outside of it.

Anyone know what the problem in this is, please let us all know.

Rob
Image
rl2171
Admin
Admin
 
Posts: 1706
Joined: Mon Aug 06, 2007 5:17 pm
Location: Sacramento, CA USA - GMT-8

Re: Prison Return Scroll

Postby rl2171 on Fri Aug 24, 2007 6:32 pm

Ok, I got this one fixed.

The problem is it was not in the useitem_data.csv

Look for

  1.  
  2. 364,0,313,0,5,1,12,0,0|0,0|3295
  3.  


Add after it:

  1.  
  2. 365,0,313,0,5,1,12,0,0|0,0|3296
  3.  


I just made the number 3296 as the next number in that sequence.

Now the prison scroll works just fine!

Rob
Image
rl2171
Admin
Admin
 
Posts: 1706
Joined: Mon Aug 06, 2007 5:17 pm
Location: Sacramento, CA USA - GMT-8

Re: Prison Return Scroll

Postby Rifke on Sat Aug 25, 2007 1:21 am

  1.  
  2.             else//Return Scrolls
  3.             if( (useitem->itemnum>349 && useitem->itemnum<355) ||
  4.                 (useitem->itemnum>359 && useitem->itemnum<365) )
  5.  


It could also be done by using <= instead of increasing the number.

  1.  
  2.             else//Return Scrolls
  3.             if( (useitem->itemnum > 349 && useitem->itemnum < 355) ||
  4.                 (useitem->itemnum > 359 && useitem->itemnum <= 365) )
  5.  
Rifke
Pero pero
Pero pero
 
Posts: 719
Joined: Thu Aug 09, 2007 3:01 pm
Location: Belgium

Re: Prison Return Scroll

Postby rl2171 on Sat Aug 25, 2007 5:15 am

So true. I was just following the way they did it, but yes yours works too ;)

Thanks

Rob



Rifke wrote:
  1.  
  2.             else//Return Scrolls
  3.             if( (useitem->itemnum>349 && useitem->itemnum<355) ||
  4.                 (useitem->itemnum>359 && useitem->itemnum<365) )
  5.  


It could also be done by using <= instead of increasing the number.

  1.  
  2.             else//Return Scrolls
  3.             if( (useitem->itemnum > 349 && useitem->itemnum < 355) ||
  4.                 (useitem->itemnum > 359 && useitem->itemnum <= 365) )
  5.  
Image
rl2171
Admin
Admin
 
Posts: 1706
Joined: Mon Aug 06, 2007 5:17 pm
Location: Sacramento, CA USA - GMT-8

Re: Prison Return Scroll

Postby rl2171 on Sun Aug 26, 2007 2:54 am

Updated location to match commercial server location
Image
rl2171
Admin
Admin
 
Posts: 1706
Joined: Mon Aug 06, 2007 5:17 pm
Location: Sacramento, CA USA - GMT-8

Re: Prison Return Scroll

Postby Crashinside on Fri Sep 21, 2007 9:52 pm

rl2171 wrote:Ok, I got this one fixed.

The problem is it was not in the useitem_data.csv

Look for

  1.  
  2. 364,0,313,0,5,1,12,0,0|0,0|3295
  3.  


Add after it:

  1.  
  2. 365,0,313,0,5,1,12,0,0|0,0|3296
  3.  


I just made the number 3296 as the next number in that sequence.

Now the prison scroll works just fine!

Rob

I have add to end of file,its ok too?
Image
User avatar
Crashinside
Pomic
Pomic
 
Posts: 97
Joined: Wed Sep 19, 2007 12:53 pm


Return to Submit Code

Who is online

Users browsing this forum: No registered users and 2 guests