DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • September 09, 2010, 12:48:33 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: server entry  (Read 1080 times)
0 Members and 1 Guest are viewing this topic.
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1009


LoGD Buff!


View Profile WWW
« on: March 08, 2004, 05:15:31 PM »

Can someone please explain to me in plain English and by exact example and where (accounts?) to make 2 differant server entries.

1) Item that can used only once per day.
ie: whatever the place visited once per day.

2) Item that can be used more than once but with a number limit.
ie: quests

I know an entry for the user and newday also need to be made and is not a problem.

Thank you very much.
« Last Edit: March 08, 2004, 05:17:57 PM by robert » Logged

lonnyl
Guest
« Reply #1 on: March 08, 2004, 05:33:09 PM »

for a a once a day event  you need to create a database field in accounts table of tinyint length 1 no null default value 0    

for something you want to have many turns for add a field of int  length (2 or more) no null default value 0

then you can call them like any other value $session[user][yourvariable]

hope that helps ..... take a look at the trading mini game add-on for an example
Logged
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1009


LoGD Buff!


View Profile WWW
« Reply #2 on: March 08, 2004, 06:11:36 PM »

 

for something you want to have many turns for add a field of int  length (2 or more) no null default value 0

then you can call them like any other value $session[user][yourvariable]


Thank you lonny,
sorry but understanding techtalk about this area is not our strongest point - we can make the entires but they need to be spelled out in plain english.

Question:  the "length 2 or more" you refer to, does that set the total amount of uses?  
ie:  quests = 5     so the server entry would be:
quests int  5  no null default value 0
AND IF
ie:  searches = 20   so the server entry would be:
searches int  20  no null default value 0

Is this correct?

Logged

lonnyl
Guest
« Reply #3 on: March 08, 2004, 06:12:50 PM »

no those are the values for creating the mysql fields.
Logged
strider
lord of Legendgard
Administrator
Codemeister
*****
Offline Offline

Posts: 394


Lord of Legendgard


View Profile WWW
« Reply #4 on: March 08, 2004, 06:42:07 PM »

Robert, I might be able to save you some time as well. DID you install the "Special Vars" mod into your server?
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
39 Guests, 4 Users
Cory2, windsummoner, Leskana, Iori
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search