FOnline Development > General Discussion

Script Base

<< < (2/2)

muhoooool:
Hello,
It wouldnt make too much sense in using multiple items, I mean, how are you going to do that inside of inventory?
what i meant was to have multiples of the same pid, such as 5 ropes .

JovankaB:
Inside critter_use_item function I think this should work:


--- Code: ---if( pid == PID_ROPE && item.GetCount() >= 5 )
--- End code ---

But I'm not sure what you try to achieve...

muhoooool:
Im trying to achieve so instead of using just one instance of rope to create a tent, you would need 10 ropes.

JovankaB:
try this:


--- Code: ---if( pid == PID_ROPE && item.GetCount() >= 10 ) {

   //...code...
    cr.DeleteItem(pid,10)

}
--- End code ---

muhoooool:
Nice, thanks a lot!!

Navigation

[0] Message Index

[*] Previous page

Go to full version