View Single Post
  #45  
Old 08-22-2009, 11:08 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by screen_name View Post
Anything can be done with GScript!!! Anyways, sure it could be in a couple of ways;

1. Have tradeable weapons join a lending class
2. timestamp the trade, check timestamp against lending length which could be defined by the lender
3. when time is up, return the item to the lender, delete it from the lendee
4. have various checks to eliminate exploiting the system
>> automatically give the lender the item when time is up and remove from lendee (if lendee remains online)
>> if the lendee goes offline (isn't there an event if someone disconnects?) then delete the item when they connect again
>> have a DBNPC that controls this instead of weapon scripts (best way?)
>> lendee can not drop, trade, or sell lended item
5. other related stuff (perhaps a "renting" fee)


Era's sytems are a mess right now; such a thing would not be possible.
Quote:
Originally Posted by sam_is_me View Post
You can't change those in a script?
Not when the player is offline. The only solution is the remove on login, but like Sales said, that's messy and prone to break.
__________________
Reply With Quote