if you don't give us ANY INFO about which server you are using its hard to help youIt crashes my server, idk why.. No errors, just crashing.
Crashes your server? How is it? What is your tfs? and explain your problem please.It crashes my server, idk why.. No errors, just crashing.
Crashes your server? How is it? What is your tfs? and explain your problem please.
Insert this column into your databaseAny ideas?
[31/03/2015 20:57:21] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such column: vipdays (UPDATE "accounts" SET "vipdays" = "vipdays" + 30 WHERE "id" = 22
[31/03/2015 20:57:22] Error during getDataInt(vipdays).
[31/03/2015 20:57:25] Error during getDataInt(vipdays).
[31/03/2015 20:57:28] Error during getDataInt(vipdays).
[31/03/2015 20:57:31] Error during getDataInt(vipdays).
[31/03/2015 20:57:34] Error during getDataInt(vipdays).
[31/03/2015 20:57:37] Error during getDataInt(vipdays).
[31/03/2015 20:57:39] Error during getDataInt(vipdays).
[31/03/2015 20:57:39] OTSYS_SQLITE3_PREPARE(): SQLITE ERROR: no such column: vipdays (UPDATE "accounts" SET "vipdays" = "vipdays" + 30 WHERE "id" = 22
ALTER TABLE `accounts` ADD
`vipdays` int(11) NOT NULL DEFAULT 0;
try this oneguys, could anyone help me? i want that when the person steps in the tile, the vip tile, there is a message that tells him how many days he has left for vip, is that possible? thanks!
--- Script by Kekox
function onStepIn(cid, item, position, fromPosition)
if getPlayerVipDays(cid) == 0 then
doTeleportThing(cid, fromPosition, FALSE)
else
doPlayerSendTextMessage(cid, 19, "You have ".. getPlayerVipDays(cid) .." vip days left.")
end
return true
end
Ir worked perfectly, thanks man!try this one
tile.lua
Code:--- Script by Kekox function onStepIn(cid, item, position, fromPosition) if getPlayerVipDays(cid) == 0 then doTeleportThing(cid, fromPosition, FALSE) else doPlayerSendTextMessage(cid, 19, "You have ".. getPlayerVipDays(cid) .." vip days left.") end return true end
No problem you are welcome, btw i've made change with it to work better check it and choose one from them .Ir worked perfectly, thanks man!
UPDATE `accounts` SET `vipdays`=X
i meant as a talkaction, a command by the GM, but anyway, something more important, how can i add atributes to being vip? like 20% more exp? more healing? things like that?execute this in your phpmyadmin and change X, for some number.
Code:UPDATE `accounts` SET `vipdays`=X
I don't really remember the old functions, but should be something like this:i meant as a talkaction, a command by the GM, but anyway, something more important, how can i add atributes to being vip? like 20% more exp? more healing? things like that?
Thanks!
function onLogin(cid)
if getPlayerVipDays(cid) >= 1 then
doPlayerSetExperienceRate(cid, 0.5) --5% extra exp
end
return true
end
function onStatsChange(cid, attacker, type, combat, value)
if getPlayerVipDays(cid) >= 1 then
if type == STATSCHANGE_HEALTHGAIN then
doCreatureAddHealth(cid, value * 0.5) --5% extra healing
end
end
return true
end