• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

changegold more options

Daxu

Banned User
Joined
Jun 18, 2010
Messages
336
Reaction score
9
Location
Poland
HI !
i need script
100cc = 1 scarab coin
1 scarab coin = 100cc

100 scarab coin = 1 gold nugget
1gold nugget = 100 scarab coin

:wub::wub:
rep++
 
Go to -data->actions->scripts-
Create an new .lua script and name it scarabmoney.lua
When you did that paste this script V into scarabmoney.lua

LUA:
function onUse(cid, item, frompos, item2, topos)
  	if doRemoveItem(item.uid,1) then
  		doSendAnimatedText(getPlayerPosition(cid), "Changed", TEXTCOLOR_RED)
  		doPlayerAddItem(cid,2160,100)
  	end
  end

Then go back and open actions.xml, paste this V into it.

XML:
<action itemid="2159" script="scarabmoney.lua" />

now changin nugets :D same way just name script goldennugget.lua

LUA:
function onUse(cid, item, frompos, item2, topos)
  	if doRemoveItem(item.uid,1) then
  		doSendAnimatedText(getPlayerPosition(cid), "Changed", TEXTCOLOR_TEAL)
  		doPlayerAddItem(cid,2159,100)
  	end
  end

actions.xml

XML:
<action itemid="2157" script="goldnugget.lua" />
 
not work ;S
i click on 100cc and nothing only error

[29/12/2010 13:26:36] [Error - Action Interface]
[29/12/2010 13:26:36] data/actions/scripts/other/changegold.lua:onUse
[29/12/2010 13:26:36] Description:
[29/12/2010 13:26:36] (luaDoPlayerAddItem) Item not found
 
Goto changegold.lua and scan it. If you would look at the table at top of that script you could figure out what you need to do in like 3 minutes.
 
Back
Top