SRL Archive - OSR Help

Need a quick fix


lilcmp1

2012-02-03 14:23:08

Why does
      MouseItem(CrayPattern[I], false);  

Give me a type mismatch?

Hero

2012-02-03 14:26:05

Does it work when you set it to true or anything else? Also try
MouseItem(CrayPattern[I], 0);

If replacing it with 0 doesn't compile then your CrayPattern array might be the issue. Are you trying to get it to drop them? If so look at the DropItem-DropAllExcept in Inventory.Simba and mod that so then you could use a line like


if (InvFull) then
DropAllCray;

RyGuy

2012-02-03 14:31:45

From: lilcmp1
Why does
      MouseItem(CrayPattern[I], false);  

Give me a type mismatch?


MouseItem(CrayPattern[I], mouse_right);

try this

Smidqe

2012-02-03 14:33:05

MouseItem(CrayPattern[I], mouse_left)

All mouse functions uses these integers: (Atleast I think…)

mouse_left
mouse_right
mouse_move

So replace the true/false to one of those.

Hero

2012-02-03 14:34:15

From: Smidqe
MouseItem(CrayPattern[I], mouse_left)

All mouse functions uses these integers: (Atleast I think…)

mouse_left
mouse_right
mouse_move

So replace the true/false to one of those.



That might be true too and this might be outdated.

Smidqe

2012-02-03 14:35:57

From: Hero
That might be true too and this might be outdated.
Yeah, the descriptions are very outdated :p

lilcmp1

2012-02-03 14:39:44

The mouse_right and left worked! thanks to all for help