View Single Post
  #1  
Old 05-25-2004, 04:50 AM
Salaisuus Salaisuus is offline
Registered User
Join Date: Mar 2004
Posts: 68
Salaisuus is on a distinguished road
How to drop items?

This works fine ofline for me,
but what do I need to do to make it work with npc server?

if (strtofloat(#s(client.stuff)) >=1) {
if (playerchats && strequals(#c,drop)) {
putnpc potion.gif,bpotion.txt,playerx,playery;
setplayerprop #c,Dropped;
sleep 0.1;
setstring client.stuff, #v(strtofloat(#s(client.stuff))-1);
}

Also should the npc txt. file be saved to levels/scripts or am I a complete idiot?
Reply With Quote