What's new

premium point rune skrypt problem

Status
Not open for further replies.

Elvascoo

Active User
Joined
Nov 2, 2010
Messages
59
Reaction score
0
Siema posiadam taki skrypt na premium point rune
local cfg =
{
points = 10,
effect = CONST_ME_GIFT_WRAPS
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if(not isPlayer(itemEx.uid)) then
return false
end

db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. cfg.points .. " WHERE `name` = '" .. getAccountByName(getCreatureName(itemEx.uid)) .. "' LIMIT 1;")
doCreatureSay(cid, "You have received " .. cfg.points .. " premium points!", TALKTYPE_ORANGE_1, false, nil, toPosition)
doSendMagicEffect(toPosition, cfg.effect)
doRemoveItem(item.uid, 1)
return true
end
po uzyciu runki o id 2264 na siebie nie ma zadnego efektu nic sie nie dzieje moze ktos pomoc??
 

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: premium point rune skrypt problem

To jest runa jako action, nie jako spells, przenie? ten skrypt i powinien dzia?a?.
 

Elvascoo

Active User
Joined
Nov 2, 2010
Messages
59
Reaction score
0
Odp: premium point rune skrypt problem

dokladnie gdzie mam to przeniesc??
 

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: premium point rune skrypt problem

Dokladnie to ten skrypt MUSI sie znajdowa? w folderze data/actions

Mam nadziej?, ?e wiesz jak si? instaluje skrypty??
 

Elvascoo

Active User
Joined
Nov 2, 2010
Messages
59
Reaction score
0
Odp: premium point rune skrypt problem

znajduje si? w?a?nie w tym folderze kiedy uzwam runy na siebie wyskakuje You Cannot Use This Object.
 
Last edited:

dominikms1

Senior User
Joined
Feb 6, 2010
Messages
696
Reaction score
66
Odp: premium point rune skrypt problem

zobacz to


PHP:
local cfg =
{
points = 10,
effect = CONST_ME_GIFT_WRAPS
}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == false then
return true
end

db.executeQuery("UPDATE `accounts` SET `premium_points` = `premium_points` + " .. cfg.points .. " WHERE `name` = '" .. getAccountByName(getCreatureName(itemEx.uid)) .. "' LIMIT 1;")
doCreatureSay(cid, "You have received " .. cfg.points .. " premium points!", TALKTYPE_ORANGE_1, false, nil, toPosition)
doSendMagicEffect(toPosition, cfg.effect)
doRemoveItem(item.uid, 1)
return true
end
 

Elvascoo

Active User
Joined
Nov 2, 2010
Messages
59
Reaction score
0
Odp: premium point rune skrypt problem

Nie Podzialalo. Dalej Prosze O Pomoc.
 

Deyvv

Active User
Joined
Nov 3, 2010
Messages
69
Reaction score
8
Odp: premium point rune skrypt problem

A do actions.xml na pewno dobrze wpisa?e??
<action itemid="2264" event="script" value="runa.lua"/>

Taka linijka?
 
Status
Not open for further replies.
Top