I guess it needs Ontouch... because if the players clicks the portal, the effects will trigger. x_x
I don't think that it is the point of a portal anw, just for semantic reasons.
So, you can just add this to Annie's awesome script:
prontera,156,172,1 script portal1 45,2,2,{
end; // Do nothing when the player clicks
OnTouch: // Execute script when the player approaches
switch ( rand(3) ) {
default: getitem 606,10; break;
case 1: getitem 608,20; break;
case 2: getitem 607,20;
}
warp "Save", 0,0;
end;
}
@edit: fixed typo at my bbcode